mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
Refactored to use app folder.
This commit is contained in:
parent
40cfcd41e9
commit
9a52cdd2e1
258 changed files with 2025 additions and 2258 deletions
25
src/app/login/page.tsx
Normal file
25
src/app/login/page.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import LoginForm from './LoginForm';
|
||||
import { Metadata } from 'next';
|
||||
import styles from './page.module.css';
|
||||
|
||||
async function getDisabled() {
|
||||
return !!process.env.LOGIN_DISABLED;
|
||||
}
|
||||
|
||||
export default async function LoginPage() {
|
||||
const disabled = await getDisabled();
|
||||
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<LoginForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Login | umami',
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue