explicit true criteria

This commit is contained in:
Timur Ercan
2023-03-19 15:05:33 +01:00
parent 025e6a4eb1
commit 9009506bb6

View File

@ -15,8 +15,7 @@ export default function SignupPage(props: { source: string }) {
export async function getServerSideProps(context: any) { export async function getServerSideProps(context: any) {
const signupSource: string = context.query["source"]; const signupSource: string = context.query["source"];
if (process.env.ALLOW_SIGNUP !== "true")
if (process.env.ALLOW_SIGNUP === "false")
return { return {
redirect: { redirect: {
destination: "/login", destination: "/login",