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
1 changed files with 1 additions and 1 deletions

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;