Login:Src:Wizard: fix redirect

This commit is contained in:
Darya Umrikhina 2024-08-30 11:53:49 +04:00
parent dc6d51172d
commit 88434416c8

View File

@ -24,6 +24,8 @@
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import { redirect } from "next/navigation";
import { ColorTheme, ThemeId } from "@docspace/shared/components/color-theme";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
@ -44,6 +46,10 @@ async function Page() {
const objectSettings = typeof settings === "string" ? undefined : settings;
if (!objectSettings || !objectSettings.wizardToken) {
redirect("/");
}
const [
passwordSettings,
machineName,