]> granicus.if.org Git - ejabberd/commitdiff
Fix a condition in ejabberd_auth_jwt
authorAlexey Shchepin <alexey@process-one.net>
Mon, 1 Jul 2019 11:44:17 +0000 (14:44 +0300)
committerAlexey Shchepin <alexey@process-one.net>
Mon, 1 Jul 2019 11:44:28 +0000 (14:44 +0300)
src/ejabberd_auth_jwt.erl

index 8bf622346ec8d7b8fa6986a85720f8a3c846001b..696190e5c3b7227abbb117c70e01deab469f17a8 100644 (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;