refactor: 替换管理员登录组件并更新会话管理
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AdminShell } from "@/components/admin/admin-shell";
|
||||
import { AdminShellAuthGate } from "@/components/admin/admin-shell-auth-gate";
|
||||
import { ShellAuthGate } from "@/components/admin/auth-gate";
|
||||
|
||||
export default function AdminShellLayout({
|
||||
children,
|
||||
@@ -7,8 +7,8 @@ export default function AdminShellLayout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<AdminShellAuthGate>
|
||||
<ShellAuthGate>
|
||||
<AdminShell>{children}</AdminShell>
|
||||
</AdminShellAuthGate>
|
||||
</ShellAuthGate>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
import { AdminLoginForm } from "@/components/admin/admin-login-form";
|
||||
import { LoginForm } from "@/components/admin/login-form";
|
||||
import { authModuleMeta } from "@/modules/auth/meta";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
@@ -8,5 +8,5 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
export default function AdminLoginPage() {
|
||||
return <AdminLoginForm />;
|
||||
return <LoginForm />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user