diff options
author | Badlop <badlop@process-one.net> | 2021-10-04 11:14:56 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2021-10-04 12:08:56 +0200 |
commit | 85408662ffb26bc92a65ae027e773618cf24e313 (patch) | |
tree | 846594fbdf766df49c53b0ecaf0f43a22c502395 /src | |
parent | Support old scram records before xmpp's 651050f9 and ejabberd's e5cad9be6 (#3... (diff) |
Use mod_register to format some common error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_register_web.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mod_register_web.erl b/src/mod_register_web.erl index 0e216c81c..afb8f9f24 100644 --- a/src/mod_register_web.erl +++ b/src/mod_register_web.erl @@ -579,12 +579,8 @@ get_error_text({error, exists}) -> ?T("The account already exists"); get_error_text({error, password_incorrect}) -> ?T("Incorrect password"); -get_error_text({error, invalid_jid}) -> - ?T("The username is not valid"); get_error_text({error, host_unknown}) -> ?T("Host unknown"); -get_error_text({error, not_allowed}) -> - ?T("Not allowed"); get_error_text({error, account_doesnt_exist}) -> ?T("Account doesn't exist"); get_error_text({error, account_exists}) -> @@ -594,7 +590,9 @@ get_error_text({error, password_not_changed}) -> get_error_text({error, passwords_not_identical}) -> ?T("The passwords are different"); get_error_text({error, wrong_parameters}) -> - ?T("Wrong parameters in the web formulary"). + ?T("Wrong parameters in the web formulary"); +get_error_text({error, Why}) -> + mod_register:format_error(Why). mod_options(_) -> []. |