Kaynağa Gözat

fix(auth_token): check params before getting its property

factor2
emrah 8 ay önce
ebeveyn
işleme
9fd6a6c822

+ 1
- 1
resources/prosody-plugins/mod_auth_token.lua Dosyayı Görüntüle

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

Loading…
İptal
Kaydet