@@ -24,14 +24,14 @@ export default async function RootUiKitPage() {
|
||||
const authenticated = isAdminAuthenticated();
|
||||
|
||||
if (!authenticated) {
|
||||
redirect("/root");
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
async function logoutAction() {
|
||||
"use server";
|
||||
|
||||
clearAdminSessionCookie();
|
||||
redirect("/root");
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user