create a login page /auth
This commit is contained in:
@@ -37,7 +37,7 @@ async function AdminLayout({
|
||||
if (!session) {
|
||||
// This should be handled by middleware, but as a fallback
|
||||
const { redirect } = await import("next/navigation")
|
||||
redirect("/login")
|
||||
redirect("/auth")
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -28,7 +28,7 @@ function SubmitButton() {
|
||||
}
|
||||
|
||||
|
||||
export default function LoginPage() {
|
||||
export default function AuthPage() {
|
||||
const [state, formAction] = useActionState(login, undefined);
|
||||
|
||||
return (
|
||||
Reference in New Issue
Block a user