]> granicus.if.org Git - ejabberd/commitdiff
Handle case when ejabberd_auth_* says the account exists
authorBadlop <badlop@process-one.net>
Wed, 27 Jul 2011 09:44:35 +0000 (11:44 +0200)
committerBadlop <badlop@process-one.net>
Wed, 27 Jul 2011 10:44:41 +0000 (12:44 +0200)
src/web/mod_register_web.erl

index 4288e19f5ef4fab647997a62be7952f6ba4aecc0..59a2a5ab024473384c9b0b5a39beea4d59e1134b 100644 (file)
@@ -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}) ->