Skip to content

Commit 7f00779

Browse files
committed
Update - Disable SignUps and redirect /register to /login
1 parent fa68f0b commit 7f00779

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

apps/web/app/app.dub.co/(auth)/login/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,25 @@ export default function LoginPage() {
1919
<div className="mt-8">
2020
<LoginForm />
2121
</div>
22-
<p className="mt-6 text-center text-sm font-medium text-neutral-500">
22+
23+
{/* Temp disable SignUp */}
24+
{/* <p className="mt-6 text-center text-sm font-medium text-neutral-500">
2325
Don't have an account?&nbsp;
2426
<Link
2527
href="register"
2628
className="font-semibold text-neutral-700 transition-colors hover:text-neutral-900"
2729
>
2830
Sign up
2931
</Link>
30-
</p>
32+
</p> */}
3133

32-
<div className="mt-12 w-full">
34+
{/* <div className="mt-12 w-full">
3335
<AuthAlternativeBanner
3436
text="Looking for your Dub partner account?"
3537
cta="Log in at partners.dub.co"
3638
href="https://partners.dub.co/login"
3739
/>
38-
</div>
40+
</div> */}
3941
</div>
4042
</AuthLayout>
4143
);
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
import { AuthLayout } from "@/ui/layout/auth-layout";
22
import { APP_DOMAIN, constructMetadata } from "@dub/utils";
3-
import RegisterPageClient from "./page-client";
3+
import { redirect } from "next/navigation";
4+
// import RegisterPageClient from "./page-client";
45

56
export const metadata = constructMetadata({
67
title: `Create your ${process.env.NEXT_PUBLIC_APP_NAME} account`,
78
canonicalUrl: `${APP_DOMAIN}/register`,
89
});
910

11+
// export default function RegisterPage() {
12+
// return (
13+
// <AuthLayout showTerms="app">
14+
// <RegisterPageClient />
15+
// </AuthLayout>
16+
// );
17+
// }
18+
// Redirect all access to /register to /login
1019
export default function RegisterPage() {
11-
return (
12-
<AuthLayout showTerms="app">
13-
<RegisterPageClient />
14-
</AuthLayout>
15-
);
20+
redirect("/login");
1621
}

0 commit comments

Comments
 (0)