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:
parent
3e8f3573a3
commit
8956b7d60d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user