feat: redirect to boards on login
This commit is contained in:
@@ -91,7 +91,7 @@ export default async function handler(req: NextRequest) {
|
|||||||
if (authRes?.error) {
|
if (authRes?.error) {
|
||||||
console.error(authRes.error);
|
console.error(authRes.error);
|
||||||
} else {
|
} else {
|
||||||
next = queryParams.next ?? "/";
|
next = queryParams.next ?? "/boards";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,9 +34,11 @@ export default function LoginPage() {
|
|||||||
<main className="h-screen bg-light-100 pt-20 dark:bg-dark-50 sm:pt-0">
|
<main className="h-screen bg-light-100 pt-20 dark:bg-dark-50 sm:pt-0">
|
||||||
<div className="justify-top flex h-full flex-col items-center px-4 sm:justify-center">
|
<div className="justify-top flex h-full flex-col items-center px-4 sm:justify-center">
|
||||||
<div className="z-10 flex w-full flex-col items-center">
|
<div className="z-10 flex w-full flex-col items-center">
|
||||||
<h1 className="mb-6 text-lg font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
<Link href="/">
|
||||||
kan.bn
|
<h1 className="mb-6 text-lg font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
||||||
</h1>
|
kan.bn
|
||||||
|
</h1>
|
||||||
|
</Link>
|
||||||
<p className="mb-10 text-3xl font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
<p className="mb-10 text-3xl font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
||||||
{isMagicLinkSent ? "Check your inbox" : "Welcome back"}
|
{isMagicLinkSent ? "Check your inbox" : "Welcome back"}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -34,9 +34,11 @@ export default function SignupPage() {
|
|||||||
<main className="h-screen bg-light-100 pt-20 dark:bg-dark-50 sm:pt-0">
|
<main className="h-screen bg-light-100 pt-20 dark:bg-dark-50 sm:pt-0">
|
||||||
<div className="justify-top flex h-full flex-col items-center px-4 sm:justify-center">
|
<div className="justify-top flex h-full flex-col items-center px-4 sm:justify-center">
|
||||||
<div className="z-10 flex w-full flex-col items-center">
|
<div className="z-10 flex w-full flex-col items-center">
|
||||||
<h1 className="mb-6 text-lg font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
<Link href="/">
|
||||||
kan.bn
|
<h1 className="mb-6 text-lg font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
||||||
</h1>
|
kan.bn
|
||||||
|
</h1>
|
||||||
|
</Link>
|
||||||
<p className="mb-10 text-3xl font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
<p className="mb-10 text-3xl font-bold tracking-tight text-light-1000 dark:text-dark-1000">
|
||||||
{isMagicLinkSent ? "Check your inbox" : "Create your account"}
|
{isMagicLinkSent ? "Check your inbox" : "Create your account"}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user