mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
fix: No Redirect On Valid Token (#6327)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user