mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +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: {
|
||||
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…
Add table
Add a link
Reference in a new issue