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:
Nan Yu
2022-07-01 13:21:23 -07:00
committed by GitHub
parent adb55fa965
commit 4b166432e6
4 changed files with 34 additions and 2 deletions

View File

@@ -18,6 +18,13 @@ export default function Notices() {
invite email.
</NoticeAlert>
)}
{notice === "gmail-account-creation" && (
<NoticeAlert>
Sorry, a new account cannot be created with a personal Gmail address.
<hr />
Please use a Google Workspaces account instead.
</NoticeAlert>
)}
{notice === "maximum-teams" && (
<NoticeAlert>
The team you authenticated with is not authorized on this