]> granicus.if.org Git - ejabberd/commitdiff
Fix error message when register is forbidden by ACL (EJAB-803)
authorBadlop <badlop@process-one.net>
Wed, 23 Dec 2009 16:08:20 +0000 (16:08 +0000)
committerBadlop <badlop@process-one.net>
Wed, 23 Dec 2009 16:08:20 +0000 (16:08 +0000)
SVN Revision: 2823

src/mod_register.erl

index 2ae889c5ddcc1e3b0e35b128e1b615578995742d..d094ec936332bf61c5f3a9c16736200f5fc156e2 100644 (file)
@@ -218,7 +218,7 @@ try_register(User, Server, Password, Source, Lang) ->
            Access = gen_mod:get_module_opt(Server, ?MODULE, access, all),
            case acl:match_rule(Server, Access, JID) of
                deny ->
-                   {error, ?ERR_CONFLICT};
+                   {error, ?ERR_FORBIDDEN};
                allow ->
                    case check_timeout(Source) of
                        true ->