mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12: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
|
|
@ -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