25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix error message when register is forbidden by ACL (EJAB-803)

SVN Revision: 2825
This commit is contained in:
Badlop 2009-12-23 16:09:33 +00:00
parent 0e2cd7a8d0
commit 95e96cc346

View File

@ -210,7 +210,7 @@ try_register(User, Server, Password, Source, Lang) ->
Access = gen_mod:get_module_opt(Server, ?MODULE, access, all), Access = gen_mod:get_module_opt(Server, ?MODULE, access, all),
case acl:match_rule(Server, Access, JID) of case acl:match_rule(Server, Access, JID) of
deny -> deny ->
{error, 'conflict'}; {error, 'forbidden'};
allow -> allow ->
case check_timeout(Source) of case check_timeout(Source) of
true -> true ->