This commit is contained in:
barisusakli
2016-01-10 10:26:47 +02:00
parent 2ef42e79ec
commit 005db18120
6 changed files with 61 additions and 54 deletions

View File

@@ -185,6 +185,11 @@ module.exports = function(User) {
if (password.length < meta.config.minimumPasswordLength) {
return callback(new Error('[[user:change_password_error_length]]'));
}
if (password.length > 4096) {
return callback(new Error('[[error:password-too-long]]'));
}
callback();
};