]> granicus.if.org Git - ejabberd/commitdiff
Add missing ejabberd_auth_jwt:user_exists/2 function (#3012)
authorAlexey Shchepin <alexey@process-one.net>
Sun, 8 Sep 2019 21:57:55 +0000 (00:57 +0300)
committerAlexey Shchepin <alexey@process-one.net>
Sun, 8 Sep 2019 21:57:55 +0000 (00:57 +0300)
src/ejabberd_auth_jwt.erl

index d8094562821e16a53de1d616498c308f323e370c..3b3698d1cd54a7d7a9e7234615eff4501149277d 100644 (file)
@@ -30,7 +30,8 @@
 -behaviour(ejabberd_auth).
 
 -export([start/1, stop/1, check_password/4,
-        store_type/1, plain_password_required/1
+        store_type/1, plain_password_required/1,
+         user_exists/2
         ]).
 
 -include("xmpp.hrl").
@@ -67,6 +68,8 @@ check_password(User, AuthzId, Server, Token) ->
             end
     end.
 
+user_exists(_User, _Host) -> {nocache, false}.
+
 %%%----------------------------------------------------------------------
 %%% Internal functions
 %%%----------------------------------------------------------------------