diff options
author | Badlop <badlop@process-one.net> | 2011-07-27 11:44:35 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-07-27 12:44:41 +0200 |
commit | 158aa067603a6be88d326cc84ad7e6174005e65f (patch) | |
tree | 14cee9b335d94297904aa26304f248a55d68e856 | |
parent | More fix Host usage when running webadmin_page_* (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}) -> |