Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: mfa checks (#13753)

boojackcd580689fa2c
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.go
index 2d81e6e2ab..12ad3589d4 100644
--- a/backend/api/v1/auth_service.go
+++ b/backend/api/v1/auth_service.go
@@ -675,7 +675,7 @@ func (s *AuthService) Login(ctx context.Context, request *v1pb.LoginRequest) (*v
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to check user roles, error: %v", err)
}
- if !isWorkspaceAdmin && loginUser.Type == api.EndUser {
+ if !isWorkspaceAdmin && loginUser.Type == api.EndUser && !mfaSecondLogin {
// Disallow password signin for end users.
if setting.DisallowPasswordSignin && !loginViaIDP {
return nil, status.Errorf(codes.PermissionDenied, "password signin is disallowed")