fix: admin users were created while the setup wizard wasn't finished

This commit is contained in:
Elias Schneider
2023-01-26 15:43:13 +01:00
parent 7e91038a24
commit ad92cfc852
8 changed files with 37 additions and 22 deletions

View File

@@ -15,7 +15,7 @@ const Setup = () => {
if (!user) {
router.push("/auth/signUp");
return;
} else if (config.get("SETUP_FINISHED")) {
} else if (config.get("SETUP_STATUS") == "FINISHED") {
router.push("/");
return;
}