v1.18.x
Barış Soner Uşaklı 4 years ago
commit f6623622be

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

Loading…
Cancel
Save