fix: reject password reset token requests for disabled users
This commit is contained in:
parent
d8570c603d
commit
708ccab895
|
|
@ -116,6 +116,10 @@ func RequestUserPasswordResetTokenByEmail(s *xorm.Session, tr *PasswordTokenRequ
|
|||
return
|
||||
}
|
||||
|
||||
if user.Status == StatusDisabled {
|
||||
return &ErrAccountDisabled{UserID: user.ID}
|
||||
}
|
||||
|
||||
return RequestUserPasswordResetToken(s, user)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue