summaryrefslogtreecommitdiff
path: root/src/ejabberd_auth.erl
diff options
context:
space:
mode:
authorHAMANO Tsukasa <hamano@cuspy.org>2014-05-01 00:20:58 +0900
committerHAMANO Tsukasa <hamano@cuspy.org>2014-05-01 00:20:58 +0900
commit0904b8b8ff054a3ec8543db526e5f3f281dfcf09 (patch)
treeb906c494d169b3fad8b91ea5ea2f32eb207600df /src/ejabberd_auth.erl
parentFix error reporting in previous commit (diff)
improve error handling when sql calling with (empty|unknown) host.
see #191
Diffstat (limited to 'src/ejabberd_auth.erl')
-rw-r--r--src/ejabberd_auth.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ejabberd_auth.erl b/src/ejabberd_auth.erl
index bf399af2..477926f6 100644
--- a/src/ejabberd_auth.erl
+++ b/src/ejabberd_auth.erl
@@ -300,6 +300,9 @@ get_password_with_authmodule(User, Server) ->
-spec is_user_exists(binary(), binary()) -> boolean().
+is_user_exists(User, <<"">>) ->
+ false;
+
is_user_exists(User, Server) ->
%% Check if the user exists in all authentications module except the module
%% passed as parameter