From e04ca53b0a27802117a7024d2630e502e4b089cb Mon Sep 17 00:00:00 2001 From: Taizo 'Tsa6' Simpson Date: Tue, 26 Sep 2017 15:47:11 -0400 Subject: [PATCH 1/2] Removed password character cap --- server/routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/index.js b/server/routes/index.js index afe8c7b..b76edc5 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -418,7 +418,7 @@ router.post('/register', accountLimiter, wrap(async (req, res, next) => { // 4th Check: Password length 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!') } @@ -531,7 +531,7 @@ router.post('/user/manage/password', accountLimiter, wrap(async (req, res, next) } 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!') } From 4d5267f0db1993717ffbbd5b36d7fb3e3e51826f Mon Sep 17 00:00:00 2001 From: Taizo 'Tsa6' Simpson Date: Tue, 26 Sep 2017 15:55:22 -0400 Subject: [PATCH 2/2] Fixed password warning message to use new rules --- server/routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/index.js b/server/routes/index.js index b76edc5..ac23f31 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -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