Add missing ejabberd_auth_jwt:user_exists/2 function (#3012)

This commit is contained in:
Alexey Shchepin 2019-09-09 00:57:55 +03:00
parent 21aa344ed5
commit 6d83cbd1a8
1 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,8 @@
-behaviour(ejabberd_auth). -behaviour(ejabberd_auth).
-export([start/1, stop/1, check_password/4, -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"). -include("xmpp.hrl").
@ -67,6 +68,8 @@ check_password(User, AuthzId, Server, Token) ->
end end
end. end.
user_exists(_User, _Host) -> {nocache, false}.
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------
%%% Internal functions %%% Internal functions
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------