mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-07 23:30:02 +01:00
closes #4041
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user