From 5bf6d17451bd11e8e8f5733db69e098addf9d085 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Thu, 19 Mar 2026 15:11:37 +0800 Subject: [PATCH] fix: handle mfa and entrance auth errors (#12222) --- core/app/api/v2/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app/api/v2/auth.go b/core/app/api/v2/auth.go index 7978bf054..45b4586a5 100644 --- a/core/app/api/v2/auth.go +++ b/core/app/api/v2/auth.go @@ -94,7 +94,7 @@ func (b *BaseApi) MFALogin(c *gin.Context) { user, msgKey, err := authService.MFALogin(c, req, string(entrance)) go saveLoginLogs(c, wrapLoginErr(msgKey, err)) - if msgKey == "ErrAuth" { + if msgKey == "ErrAuth" || msgKey == "ErrMFA" { helper.BadAuth(c, msgKey, err) return }