From 9fd6a6c8229cb508e3656bb0894e77bb62725ea2 Mon Sep 17 00:00:00 2001 From: emrah Date: Thu, 17 Oct 2024 12:18:28 +0300 Subject: [PATCH] fix(auth_token): check params before getting its property --- resources/prosody-plugins/mod_auth_token.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/prosody-plugins/mod_auth_token.lua b/resources/prosody-plugins/mod_auth_token.lua index fde6e7a41f..d18e2dcc67 100644 --- a/resources/prosody-plugins/mod_auth_token.lua +++ b/resources/prosody-plugins/mod_auth_token.lua @@ -48,7 +48,7 @@ function init_session(event) -- After validating auth_token will be cleaned in case of error and few -- other fields will be extracted from the token and set in the session - if query and params.token then + if params and params.token then token = params.token; end end