diff options
author | Badlop <badlop@process-one.net> | 2011-07-27 13:44:35 +0400 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-07-27 14:44:41 +0400 |
commit | 158aa067603a6be88d326cc84ad7e6174005e65f (patch) | |
tree | 14cee9b335d94297904aa26304f248a55d68e856 | |
parent | 9c2f0681f05b318cd3fc0758dee2719be34bea07 (diff) |
Handle case when ejabberd_auth_* says the account exists
-rw-r--r-- | src/web/mod_register_web.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/mod_register_web.erl b/src/web/mod_register_web.erl index 4288e19f5..59a2a5ab0 100644 --- a/src/web/mod_register_web.erl +++ b/src/web/mod_register_web.erl @@ -578,6 +578,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}) -> |