mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 08:00:53 +00:00
fix: handle mfa and entrance auth errors (#12222)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user