Ver código fonte

Fix broken claims comparison

j8
Sam Whited 8 anos atrás
pai
commit
7fb18d1cb3
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      prosody-plugins/mod_auth_token.lua

+ 1
- 1
prosody-plugins/mod_auth_token.lua Ver arquivo

@@ -154,7 +154,7 @@ function provider.get_sasl_handler(session)
154 154
 		else
155 155
 			claims, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);
156 156
 		end
157
-		if claims ~= true then
157
+		if claims ~= nil then
158 158
 			-- Binds room name to the session which is later checked on MUC join
159 159
 			session.jitsi_meet_room = claims["room"];
160 160
 			return true;

Carregando…
Cancelar
Salvar