25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix a condition in ejabberd_auth_jwt

This commit is contained in:
Alexey Shchepin 2019-07-01 14:44:17 +03:00
parent 3e8f3573a3
commit 8956b7d60d

View File

@ -75,7 +75,7 @@ check_jwt_token(User, Server, Token) ->
{ok, Exp} ->
Now = erlang:system_time(second),
if
true orelse Exp > Now ->
Exp > Now ->
case maps:find(<<"jid">>, Fields) of
error ->
false;