1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-04 00:10:17 +02:00

fix: sign up page available when registration is disabled

This commit is contained in:
Elias Schneider 2022-12-09 12:05:43 +01:00
parent 3c74cc14df
commit c8a4521677

View File

@ -10,7 +10,7 @@ const SignUp = () => {
const router = useRouter();
if (user) {
router.replace("/");
} else if (config.get("ALLOW_REGISTRATION") == "false") {
} else if (!config.get("ALLOW_REGISTRATION")) {
router.replace("/auth/signIn");
} else {
return (