mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 19:41:16 +01:00
closes #4203
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
"password": "Password",
|
||||
"username_taken_workaround": "The username you requested was already taken, so we have altered it slightly. You are now known as <strong>%1</strong>",
|
||||
"password_same_as_username": "Your password is the same as your username, please select another password.",
|
||||
"password_same_as_email": "Your password is the same as your email, please select another password.",
|
||||
|
||||
"upload_picture": "Upload picture",
|
||||
"upload_a_picture": "Upload a picture",
|
||||
|
||||
@@ -185,6 +185,8 @@ define('forum/register', ['csrf', 'translator'], function(csrf, translator) {
|
||||
showError(password_notify, '[[user:change_password_error]]');
|
||||
} else if (password === $('#username').val()) {
|
||||
showError(password_notify, '[[user:password_same_as_username]]');
|
||||
} else if (password === $('#email').val()) {
|
||||
showError(password_notify, '[[user:password_same_as_email]]');
|
||||
} else {
|
||||
showSuccess(password_notify, successIcon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user