Login:Src:Wizard: fix redirect
This commit is contained in:
parent
dc6d51172d
commit
88434416c8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user