Merge pull request #10394 from overleaf/ii-password-reset-and-strength-checking

[web] Password reset strength checking and UI updates

GitOrigin-RevId: 442a5c9e7e9d0a61d3ae649f3526bc3c02fd5704
This commit is contained in:
ilkin-overleaf
2022-12-07 09:03:36 +00:00
committed by Copybot
parent 887ac13f06
commit 2675cab92e
21 changed files with 309 additions and 159 deletions
@@ -103,6 +103,12 @@ async function changePassword(req, res, next) {
res,
req.i18n.translate('password_change_password_must_be_different')
)
} else if (error.name === 'PasswordReusedError') {
return res.status(400).json({
message: {
key: 'password-must-be-strong',
},
})
} else {
throw error
}