mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
ba31f48f1a
* add uuid to event. add indexes * eventdata api * add event data * remove test data * update list
22 lines
495 B
JavaScript
22 lines
495 B
JavaScript
import React from 'react';
|
|
import Layout from 'components/layout/Layout';
|
|
import LoginForm from 'components/forms/LoginForm';
|
|
|
|
export default function LoginPage({ loginDisabled }) {
|
|
if (loginDisabled) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Layout title="login" header={false} footer={false} center>
|
|
<LoginForm />
|
|
</Layout>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return {
|
|
props: { loginDisabled: !!process.env.DISABLE_LOGIN || !!process.env.isCloudMode },
|
|
};
|
|
}
|