mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Handle error response from auth modules (thanks to Eric Liang)
This commit is contained in:
parent
1777ecd15a
commit
a5f8aeb6da
@ -251,7 +251,16 @@ get_password_with_authmodule(User, Server) ->
|
|||||||
is_user_exists(User, Server) ->
|
is_user_exists(User, Server) ->
|
||||||
lists:any(
|
lists:any(
|
||||||
fun(M) ->
|
fun(M) ->
|
||||||
M:is_user_exists(User, Server)
|
case M:is_user_exists(User, Server) of
|
||||||
|
{error, Error} ->
|
||||||
|
?ERROR_MSG("The authentication module ~p returned an "
|
||||||
|
"error~nwhen checking user ~p in server ~p~n"
|
||||||
|
"Error message: ~p",
|
||||||
|
[M, User, Server, Error]),
|
||||||
|
false;
|
||||||
|
Else ->
|
||||||
|
Else
|
||||||
|
end
|
||||||
end, auth_modules(Server)).
|
end, auth_modules(Server)).
|
||||||
|
|
||||||
%% Check if the user exists in all authentications module except the module
|
%% Check if the user exists in all authentications module except the module
|
||||||
|
Loading…
Reference in New Issue
Block a user