mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
Autologin via ?hash=xxx parameter in url
This commit is contained in:
parent
2575cbfc11
commit
6bd01aaa45
8 changed files with 64 additions and 4 deletions
|
|
@ -1,11 +1,13 @@
|
|||
import React from 'react';
|
||||
import Layout from 'components/layout/Layout';
|
||||
import LoginForm from 'components/forms/LoginForm';
|
||||
import { useRouter } from 'next/router';
|
||||
|
||||
export default function LoginPage() {
|
||||
const { query } = useRouter();
|
||||
return (
|
||||
<Layout title="login" header={false} footer={false} center>
|
||||
<LoginForm />
|
||||
<LoginForm hash={query.hash} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue