Handle case when ejabberd_auth_* says the account exists

This commit is contained in:
Badlop 2011-07-27 11:44:35 +02:00
parent 83014fb77b
commit 493b664f19
1 changed files with 2 additions and 0 deletions

View File

@ -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}) ->