aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-07-27 11:44:35 +0200
committerBadlop <badlop@process-one.net>2011-07-27 11:44:35 +0200
commit493b664f1905331198aecb7d74b2e1fe49495bb7 (patch)
tree38b39947a73103369500528272795c3ca39a6979 /src
parentInclude status 110 in presence to new occupant (EJAB-740) (diff)
Handle case when ejabberd_auth_* says the account exists
Diffstat (limited to 'src')
-rw-r--r--src/web/mod_register_web.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/mod_register_web.erl b/src/web/mod_register_web.erl
index 98ee52fb9..a39dc8fb4 100644
--- a/src/web/mod_register_web.erl
+++ b/src/web/mod_register_web.erl
@@ -598,6 +598,8 @@ unregister_account(Username, Host, Password) ->
get_error_text({error, captcha_non_valid}) ->
"The captcha you entered is wrong";
+get_error_text({success, exists, _}) ->
+ get_error_text({atomic, exists});
get_error_text({atomic, exists}) ->
"The account already exists";
get_error_text({error, password_incorrect}) ->