2020-07-26 01:31:07 +02:00
|
|
|
import React from 'react';
|
2020-08-07 11:27:12 +02:00
|
|
|
import Layout from 'components/layout/Layout';
|
|
|
|
import LoginForm from 'components/forms/LoginForm';
|
2021-10-09 12:10:29 +02:00
|
|
|
import AutoLogin from 'components/forms/AutoLogin';
|
2021-10-09 11:47:20 +02:00
|
|
|
import { useRouter } from 'next/router';
|
2020-07-26 01:31:07 +02:00
|
|
|
|
|
|
|
export default function LoginPage() {
|
2021-10-09 11:47:20 +02:00
|
|
|
const { query } = useRouter();
|
2021-10-09 12:10:29 +02:00
|
|
|
if (query.hash) {
|
|
|
|
return <AutoLogin hash={query.hash} />;
|
|
|
|
}
|
2020-07-26 01:31:07 +02:00
|
|
|
return (
|
2020-08-12 07:24:41 +02:00
|
|
|
<Layout title="login" header={false} footer={false} center>
|
2021-10-09 12:10:29 +02:00
|
|
|
<LoginForm />
|
2020-07-26 01:31:07 +02:00
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|