v1.18.x
psychobunny 10 years ago
parent d8c9c8d447
commit 2669241c06

@ -30,7 +30,6 @@
"express-session": "^1.8.2", "express-session": "^1.8.2",
"gravatar": "^1.1.0", "gravatar": "^1.1.0",
"heapdump": "^0.3.0", "heapdump": "^0.3.0",
"jimp": "^0.2.5",
"less": "^2.0.0", "less": "^2.0.0",
"logrotate-stream": "^0.2.3", "logrotate-stream": "^0.2.3",
"lru-cache": "^2.6.1", "lru-cache": "^2.6.1",

@ -54,6 +54,7 @@
"confirm_password": "Confirm Password", "confirm_password": "Confirm Password",
"password": "Password", "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>", "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.",
"upload_picture": "Upload picture", "upload_picture": "Upload picture",
"upload_a_picture": "Upload a picture", "upload_a_picture": "Upload a picture",

@ -176,6 +176,8 @@ define('forum/register', ['csrf', 'translator'], function(csrf, translator) {
showError(password_notify, '[[user:change_password_error_length]]'); showError(password_notify, '[[user:change_password_error_length]]');
} else if (!utils.isPasswordValid(password)) { } else if (!utils.isPasswordValid(password)) {
showError(password_notify, '[[user:change_password_error]]'); showError(password_notify, '[[user:change_password_error]]');
} else if (password === $('#username').val()) {
showError(password_notify, '[[user:password_same_as_username]]');
} else { } else {
showSuccess(password_notify, successIcon); showSuccess(password_notify, successIcon);
} }

Loading…
Cancel
Save