mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-28 16:57:52 +02:00
24 lines
474 B
JavaScript
24 lines
474 B
JavaScript
import React from 'react';
|
|
import Layout from 'components/layout/Layout';
|
|
import LoginForm from 'components/forms/LoginForm';
|
|
|
|
export default function LoginPage({ pageDisabled }) {
|
|
if (pageDisabled) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Layout title="login" header={false} footer={false} center>
|
|
<LoginForm />
|
|
</Layout>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return {
|
|
props: {
|
|
pageDisabled: !!process.env.DISABLE_LOGIN,
|
|
},
|
|
};
|
|
}
|