Browse Source

fix(auth_token): check params before getting its property

factor2
emrah 8 months ago
parent
commit
9fd6a6c822
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      resources/prosody-plugins/mod_auth_token.lua

+ 1
- 1
resources/prosody-plugins/mod_auth_token.lua View File

@@ -48,7 +48,7 @@ function init_session(event)
48 48
         -- After validating auth_token will be cleaned in case of error and few
49 49
         -- other fields will be extracted from the token and set in the session
50 50
 
51
-        if query and params.token then
51
+        if params and params.token then
52 52
             token = params.token;
53 53
         end
54 54
     end

Loading…
Cancel
Save