Squashed commit of the following:
commit fc87557902
Author: zomars <zomars@me.com>
Date: Fri Aug 5 15:08:36 2022 -0600
Fixes callbackUrl
pull/9078/head
parent
915610763e
commit
7560fdbfc5
|
@ -9,7 +9,7 @@ import Button from "@calcom/ui/Button";
|
||||||
import { EmailField, PasswordField, TextField } from "@calcom/ui/form/fields";
|
import { EmailField, PasswordField, TextField } from "@calcom/ui/form/fields";
|
||||||
import { HeadSeo } from "@calcom/web/components/seo/head-seo";
|
import { HeadSeo } from "@calcom/web/components/seo/head-seo";
|
||||||
import { asStringOrNull } from "@calcom/web/lib/asStringOrNull";
|
import { asStringOrNull } from "@calcom/web/lib/asStringOrNull";
|
||||||
import { WEBSITE_URL, WEBAPP_URL } from "@calcom/web/lib/config/constants";
|
import { WEBAPP_URL } from "@calcom/web/lib/config/constants";
|
||||||
import prisma from "@calcom/web/lib/prisma";
|
import prisma from "@calcom/web/lib/prisma";
|
||||||
import { isSAMLLoginEnabled } from "@calcom/web/lib/saml";
|
import { isSAMLLoginEnabled } from "@calcom/web/lib/saml";
|
||||||
import { IS_GOOGLE_LOGIN_ENABLED } from "@calcom/web/server/lib/constants";
|
import { IS_GOOGLE_LOGIN_ENABLED } from "@calcom/web/server/lib/constants";
|
||||||
|
@ -53,7 +53,7 @@ export default function Signup() {
|
||||||
.then(
|
.then(
|
||||||
async () =>
|
async () =>
|
||||||
await signIn("Cal.com", {
|
await signIn("Cal.com", {
|
||||||
callbackUrl: (`${WEBSITE_URL}/${router.query.callbackUrl}` || "") as string,
|
callbackUrl: (`${WEBAPP_URL}/${router.query.callbackUrl}` || "") as string,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
Loading…
Reference in New Issue