From 41404148e15bfa7115fb6a22cc3feef6536fbd21 Mon Sep 17 00:00:00 2001 From: Carlos Monastyrski Date: Sun, 31 Aug 2025 13:37:41 -0300 Subject: [PATCH] Improve error message --- backend/src/services/auth/auth-login-service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.ts index e2d628c99..0e5ed2ad9 100644 --- a/backend/src/services/auth/auth-login-service.ts +++ b/backend/src/services/auth/auth-login-service.ts @@ -457,11 +457,10 @@ export const authLoginServiceFactory = ({ if ( selectedOrg.authEnforced && !isAuthMethodSaml(decodedToken.authMethod) && - decodedToken.authMethod !== AuthMethod.OIDC && - decodedToken.authMethod !== AuthMethod.GOOGLE + decodedToken.authMethod !== AuthMethod.OIDC ) { throw new BadRequestError({ - message: "Authentication is required by your organization before you can log in." + message: "Login with the auth method required by your organization." }); }