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:
parent
3c74cc14df
commit
c8a4521677
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue
Block a user