fix: show a distinct error message when a user tries to create an account using a personal gmail (#3710)
* fix: show a different error message when a user tries to create an account using a personal gmail * throw only after attempting to find the team
This commit is contained in:
@@ -136,6 +136,14 @@ export function TeamDomainRequiredError(
|
||||
});
|
||||
}
|
||||
|
||||
export function GmailAccountCreationError(
|
||||
message = "Cannot create account using personal gmail address"
|
||||
) {
|
||||
return httpErrors(400, message, {
|
||||
id: "gmail_account_creation",
|
||||
});
|
||||
}
|
||||
|
||||
export function AuthRedirectError(
|
||||
message = "Redirect to the correct domain after authentication",
|
||||
redirectUrl: string
|
||||
|
||||
Reference in New Issue
Block a user