diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsx
index 6c3e4106ea..96ae1ce310 100644
--- a/apps/web/pages/signup.tsx
+++ b/apps/web/pages/signup.tsx
@@ -307,61 +307,63 @@ export default function Signup({ prepopulateFormValues, token, orgSlug }: Signup
{/* Social Logins */}
-
-
{
- if (!formMethods.getValues("username")) {
- formMethods.trigger("username");
- return;
- }
- const username = formMethods.getValues("username");
- const searchQueryParams = new URLSearchParams();
- searchQueryParams.set("username", formMethods.getValues("username"));
- const baseUrl = process.env.NEXT_PUBLIC_WEBAPP_URL;
- localStorage.setItem("username", username);
- // @NOTE: don't remove username query param as it's required right now for stripe payment page
- const googleAuthUrl = `${baseUrl}/auth/sso/google?${searchQueryParams.toString()}`;
+ {!token && (
+
+
{
+ if (!formMethods.getValues("username")) {
+ formMethods.trigger("username");
+ return;
+ }
+ const username = formMethods.getValues("username");
+ const searchQueryParams = new URLSearchParams();
+ searchQueryParams.set("username", formMethods.getValues("username"));
+ const baseUrl = process.env.NEXT_PUBLIC_WEBAPP_URL;
+ localStorage.setItem("username", username);
+ // @NOTE: don't remove username query param as it's required right now for stripe payment page
+ const googleAuthUrl = `${baseUrl}/auth/sso/google?${searchQueryParams.toString()}`;
- router.push(googleAuthUrl);
- }}>
-
- Google
-
-
{
- if (!formMethods.getValues("username")) {
- formMethods.trigger("username");
- }
- if (!formMethods.getValues("email")) {
- formMethods.trigger("email");
- return;
- }
- const username = formMethods.getValues("username");
- localStorage.setItem("username", username);
- const sp = new URLSearchParams();
- // @NOTE: don't remove username query param as it's required right now for stripe payment page
- sp.set("username", formMethods.getValues("username"));
- sp.set("email", formMethods.getValues("email"));
- router.push(`${process.env.NEXT_PUBLIC_WEBAPP_URL}/auth/sso/saml` + `?${sp.toString()}`);
- }}>
-
- {t("saml_sso")}
-
-
+ router.push(googleAuthUrl);
+ }}>
+
+ Google
+
+
{
+ if (!formMethods.getValues("username")) {
+ formMethods.trigger("username");
+ }
+ if (!formMethods.getValues("email")) {
+ formMethods.trigger("email");
+ return;
+ }
+ const username = formMethods.getValues("username");
+ localStorage.setItem("username", username);
+ const sp = new URLSearchParams();
+ // @NOTE: don't remove username query param as it's required right now for stripe payment page
+ sp.set("username", formMethods.getValues("username"));
+ sp.set("email", formMethods.getValues("email"));
+ router.push(`${process.env.NEXT_PUBLIC_WEBAPP_URL}/auth/sso/saml` + `?${sp.toString()}`);
+ }}>
+
+ {t("saml_sso")}
+
+
+ )}
{/* Already have an account & T&C */}
@@ -369,19 +371,17 @@ export default function Signup({ prepopulateFormValues, token, orgSlug }: Signup
{t("already_have_account")}
-
-
- By signing up, you agree to our{" "}
+
+
+ By signing up, you agree to our
Terms of Service
- {" "}
- and{" "}
+
Privacy Policy
- .
-
+
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index cacfe855a6..d22847b368 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -67,7 +67,7 @@
"cannot_repackage_codebase": "You can not repackage or sell the codebase",
"acquire_license": "Acquire a commercial license to remove these terms by emailing",
"terms_summary": "Summary of terms",
- "signing_up_terms":"By signing up, you agree to our <1>Terms of Service1> and <2>Privacy Policy2>.",
+ "signing_up_terms":"By signing up, you agree to our <2>Terms of Service2> and <4>Privacy Policy4>.",
"open_env": "Open .env and agree to our License",
"env_changed": "I've changed my .env",
"accept_license": "Accept License",