mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #26449 from overleaf/jel-password-reset-err-msg
[web] Fix message check when managed user linked to SSO tries to reset password GitOrigin-RevId: f271cd38484c48418f60c28eab2c4863d2984313
This commit is contained in:
@@ -119,7 +119,11 @@ async function requestReset(req, res, next) {
|
||||
OError.tag(err, 'failed to generate and email password reset token', {
|
||||
email,
|
||||
})
|
||||
if (err.message === 'user does not have permission for change-password') {
|
||||
|
||||
if (
|
||||
err.message ===
|
||||
'user does not have one or more permissions within change-password'
|
||||
) {
|
||||
return res.status(403).json({
|
||||
message: {
|
||||
key: 'no-password-allowed-due-to-sso',
|
||||
|
||||
Reference in New Issue
Block a user