mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 18:45:36 +01:00
Added option to disable login. Closes #948
This commit is contained in:
parent
429d5b480c
commit
8e350a2056
2 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
env: {
|
env: {
|
||||||
VERSION: pkg.version,
|
VERSION: pkg.version,
|
||||||
FORCE_SSL: !!process.env.FORCE_SSL,
|
FORCE_SSL: !!process.env.FORCE_SSL,
|
||||||
|
DISABLE_LOGIN: !!process.env.DISABLE_LOGIN,
|
||||||
},
|
},
|
||||||
basePath: process.env.BASE_PATH,
|
basePath: process.env.BASE_PATH,
|
||||||
eslint: {
|
eslint: {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@ import Layout from 'components/layout/Layout';
|
||||||
import LoginForm from 'components/forms/LoginForm';
|
import LoginForm from 'components/forms/LoginForm';
|
||||||
|
|
||||||
export default function LoginPage() {
|
export default function LoginPage() {
|
||||||
|
if (process.env.DISABLE_LOGIN) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout title="login" header={false} footer={false} center>
|
<Layout title="login" header={false} footer={false} center>
|
||||||
<LoginForm />
|
<LoginForm />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue