瀏覽代碼

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,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…
取消
儲存