]> 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 09:44:35 +0000 (11:44 +0200)
src/web/mod_register_web.erl

index 98ee52fb9a0c831d4b1d345a314f306879f9fee9..a39dc8fb4f57e758eeb511b33c77e324490e164b 100644 (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}) ->