Removed password character cap

This commit is contained in:
Taizo 'Tsa6' Simpson 2017-09-26 15:47:11 -04:00
parent 3546ddcc43
commit e04ca53b0a

View File

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