25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-10 15:47:30 +01:00

* src/ejabberd_auth.erl: Bugfix: We now are forced to check is an

anonymous user is log under a given user name before trying to register
it.

SVN Revision: 535
This commit is contained in:
Mickaël Rémond 2006-04-20 17:51:29 +00:00
parent 3cce56b9f8
commit 8688bc508f
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,9 @@
Removed unnecessary parameter.
* src/ejabberd_auth_anonymous.erl: Removed unnecessary parameter /
bugfix.
* src/ejabberd_auth.erl: Bugfix: We now are forced to check is an
anonymous user is log under a given user name before trying to register
it.
2006-04-19 Alexey Shchepin <alexey@sevcom.net>

View File

@ -75,7 +75,8 @@ set_password(User, Server, Password) ->
end, {error, not_allowed}, auth_modules(Server)).
try_register(User, Server, Password) ->
case lists:member(jlib:nameprep(Server), ?MYHOSTS) of
case lists:member(jlib:nameprep(Server), ?MYHOSTS) and
not is_user_exists(User,Server) of
true ->
lists:foldl(
fun(_M, {atomic, ok} = Res) ->