mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
fix: sign up page available when registration is disabled
This commit is contained in:
parent
3c74cc14df
commit
c8a4521677
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue