This commit is contained in:
psychobunny
2016-02-23 13:25:44 -05:00
parent 92810527ea
commit 1dba781923
2 changed files with 3 additions and 0 deletions

View File

@@ -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",

View File

@@ -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);
}