Added option to disable login. Closes #948

This commit is contained in:
Mike Cao 2022-02-16 15:01:33 -08:00
parent 429d5b480c
commit 8e350a2056
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,10 @@ import Layout from 'components/layout/Layout';
import LoginForm from 'components/forms/LoginForm';
export default function LoginPage() {
if (process.env.DISABLE_LOGIN) {
return null;
}
return (
<Layout title="login" header={false} footer={false} center>
<LoginForm />