Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

fix(auth): show "Email sign-in is disabled" when an emailed code is refused (#17081)

lina-alomari9a5e15a8a043
diff --git a/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx b/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx
index fe6a2454d40..0b5798d6d1b 100644
--- a/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx
+++ b/packages/web/src/features/authentication/components/auth-landing/auth-drawer-body.tsx
@@ -1048,6 +1048,9 @@ function codeErrorMessage(error: HttpError): string {
if (errorCode === ErrorCode.INVITATION_ONLY_SIGN_UP) {
return t('You need an invitation to sign up.');
}
+ if (errorCode === ErrorCode.EMAIL_AUTH_DISABLED) {
+ return t('Email sign-in is disabled');
+ }
}
return t('Something went wrong, please try again later');
}