mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
17 lines
475 B
JavaScript
17 lines
475 B
JavaScript
import React from 'react';
|
|
import Layout from 'components/layout/Layout';
|
|
import LoginForm from 'components/forms/LoginForm';
|
|
import AutoLogin from 'components/forms/AutoLogin';
|
|
import { useRouter } from 'next/router';
|
|
|
|
export default function LoginPage() {
|
|
const { query } = useRouter();
|
|
if (query.hash) {
|
|
return <AutoLogin hash={query.hash} />;
|
|
}
|
|
return (
|
|
<Layout title="login" header={false} footer={false} center>
|
|
<LoginForm />
|
|
</Layout>
|
|
);
|
|
}
|