mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 00:21:16 +01:00
Merge branch 'master' of https://github.com/NodeBB/NodeBB
This commit is contained in:
@@ -164,8 +164,8 @@
|
||||
"grunt-contrib-watch": "1.1.0",
|
||||
"husky": "4.3.0",
|
||||
"jsdom": "16.4.0",
|
||||
"lint-staged": "10.5.0",
|
||||
"mocha": "8.2.0",
|
||||
"lint-staged": "10.5.1",
|
||||
"mocha": "8.2.1",
|
||||
"mocha-lcov-reporter": "1.3.0",
|
||||
"nyc": "15.1.0",
|
||||
"smtp-server": "3.7.0"
|
||||
|
||||
@@ -94,6 +94,10 @@ authenticationController.register = async function (req, res) {
|
||||
throw new Error('[[user:change_password_error_match]]');
|
||||
}
|
||||
|
||||
if (userData.password.length > 4096) {
|
||||
throw new Error('[[error:password-too-long]]');
|
||||
}
|
||||
|
||||
user.isPasswordValid(userData.password);
|
||||
|
||||
res.locals.processLogin = true; // set it to false in plugin if you wish to just register only
|
||||
|
||||
Reference in New Issue
Block a user