diff options
Diffstat (limited to 'src/ejabberd_auth_anonymous.erl')
-rw-r--r-- | src/ejabberd_auth_anonymous.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ejabberd_auth_anonymous.erl b/src/ejabberd_auth_anonymous.erl index 47a75ac29..9540e7c8c 100644 --- a/src/ejabberd_auth_anonymous.erl +++ b/src/ejabberd_auth_anonymous.erl @@ -178,7 +178,10 @@ check_password(User, Server, _Password, _StreamID, _Digest) -> %% they however are "reserved") case ejabberd_auth:is_user_exists_in_other_modules(?MODULE, User, Server) of + %% If user exists in other module, reject anonnymous authentication true -> false; + %% If we are not sure whether the user exists in other module, reject anon auth + maybe -> false; false -> login(User, Server) end. |