mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 02:08:36 +00:00
Sign: Handle ErrTwoFactorNotEnrolled correctly (#10008)
This commit is contained in:
@@ -43,7 +43,7 @@ func (pr *PullRequest) SignMerge(u *User, tmpBasePath, baseCommit, headCommit st
|
||||
}
|
||||
case twofa:
|
||||
twofaModel, err := GetTwoFactorByUID(u.ID)
|
||||
if err != nil {
|
||||
if err != nil && !IsErrTwoFactorNotEnrolled(err) {
|
||||
return false, "", err
|
||||
}
|
||||
if twofaModel == nil {
|
||||
|
Reference in New Issue
Block a user