mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Added option to disable login. Closes #948
This commit is contained in:
parent
429d5b480c
commit
8e350a2056
@ -5,6 +5,7 @@ module.exports = {
|
||||
env: {
|
||||
VERSION: pkg.version,
|
||||
FORCE_SSL: !!process.env.FORCE_SSL,
|
||||
DISABLE_LOGIN: !!process.env.DISABLE_LOGIN,
|
||||
},
|
||||
basePath: process.env.BASE_PATH,
|
||||
eslint: {
|
||||
|
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user