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();
|
const router = useRouter();
|
||||||
if (user) {
|
if (user) {
|
||||||
router.replace("/");
|
router.replace("/");
|
||||||
} else if (config.get("ALLOW_REGISTRATION") == "false") {
|
} else if (!config.get("ALLOW_REGISTRATION")) {
|
||||||
router.replace("/auth/signIn");
|
router.replace("/auth/signIn");
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Reference in a new issue