mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
explicit true criteria
This commit is contained in:
@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user