mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
mod_register_web: Don't crash if user exists
Since commit 633b68db11
,
ejabberd_auth:try_register/3 returns {error, exists} rather than
{atomic, exists}.
Thanks to Thomas Leister for reporting the issue.
This commit is contained in:
parent
cd10d87a9c
commit
6c0d6f0774
1 changed files with 2 additions and 2 deletions
|
@ -590,8 +590,8 @@ unregister_account(Username, Host, Password) ->
|
||||||
get_error_text({error, captcha_non_valid}) ->
|
get_error_text({error, captcha_non_valid}) ->
|
||||||
<<"The captcha you entered is wrong">>;
|
<<"The captcha you entered is wrong">>;
|
||||||
get_error_text({success, exists, _}) ->
|
get_error_text({success, exists, _}) ->
|
||||||
get_error_text({atomic, exists});
|
get_error_text({error, exists});
|
||||||
get_error_text({atomic, exists}) ->
|
get_error_text({error, exists}) ->
|
||||||
<<"The account already exists">>;
|
<<"The account already exists">>;
|
||||||
get_error_text({error, password_incorrect}) ->
|
get_error_text({error, password_incorrect}) ->
|
||||||
<<"Incorrect password">>;
|
<<"Incorrect password">>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue