fix: No Redirect On Valid Token (#6327)

This commit is contained in:
Michael Genson
2025-10-06 13:02:25 -05:00
committed by GitHub
parent 8ab69a7d7a
commit a17b0e329e
3 changed files with 12 additions and 17 deletions

View File

@@ -244,6 +244,7 @@ import UserRegistrationForm from "~/components/Domain/User/UserRegistrationForm.
definePageMeta({
layout: "blank",
middleware: ["admin-only"],
});
// ================================================================
@@ -264,13 +265,6 @@ useSeoMeta({
title: i18n.t("admin.setup.first-time-setup"),
});
if (!$auth.loggedIn.value) {
router.push("/login");
}
else if (!$auth.user.value?.admin) {
router.push(groupSlug.value ? `/g/${groupSlug.value}` : "/login");
}
enum Pages {
LANDING = 0,
USER_INFO = 1,