mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
test: sign in
This commit is contained in:
parent
012da4f1d2
commit
f9029c8687
@ -13,11 +13,11 @@ export default async function MainLayout({ children }: DashboardProps) {
|
||||
const session = await auth();
|
||||
|
||||
if (!session && getEnv("SitePassword")) {
|
||||
if (getEnv("CF_PAGES")) {
|
||||
redirect("/api/auth/signin");
|
||||
} else {
|
||||
return <SignIn />;
|
||||
}
|
||||
// if (getEnv("CF_PAGES")) {
|
||||
// redirect("/api/auth/signin");
|
||||
// } else {
|
||||
return <SignIn />;
|
||||
// }
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user