浏览代码

fix(auth_token): check params before getting its property

factor2
emrah 1年前
父节点
当前提交
9fd6a6c822
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      resources/prosody-plugins/mod_auth_token.lua

+ 1
- 1
resources/prosody-plugins/mod_auth_token.lua 查看文件

48
         -- After validating auth_token will be cleaned in case of error and few
48
         -- After validating auth_token will be cleaned in case of error and few
49
         -- other fields will be extracted from the token and set in the session
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
             token = params.token;
52
             token = params.token;
53
         end
53
         end
54
     end
54
     end

正在加载...
取消
保存