Fixed password warning message to use new rules

This commit is contained in:
Taizo 'Tsa6' Simpson 2017-09-26 15:55:22 -04:00
parent e04ca53b0a
commit 4d5267f0db
1 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ router.post('/register', accountLimiter, wrap(async (req, res, next) => {
// 4th Check: Password length
let password = req.body.password
if (!password || password.length < 8) {
return formError(req, res, 'Invalid password! Keep it between 8 and 32 characters!')
return formError(req, res, 'Invalid password! Please use at least 8 characters!')
}
// 5th Check: Password match
@ -532,7 +532,7 @@ router.post('/user/manage/password', accountLimiter, wrap(async (req, res, next)
let password = req.body.password
if (!password || password.length < 8) {
return formError(req, res, 'Invalid password! Keep it between 8 and 32 characters!')
return formError(req, res, 'Invalid password! Please use at least 8 characters!')
}
let passwordAgain = req.body.password_repeat