blob: 6e579637d182384b44846983fe4c8451108f12ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
import type { Metadata } from "next";
import { AccountShell } from "@/components/AccountShell";
import { AuthForm } from "@/components/AuthForm";
import { getLocale } from "@/lib/locale.server";
import { getMessages } from "@/lib/localization";
export async function generateMetadata(): Promise<Metadata> {
const { metadata } = getMessages(await getLocale());
return {
title: metadata.loginTitle,
robots: { index: false, follow: false },
};
}
interface LoginPageProps {
searchParams: Promise<{ google?: string }>;
}
export default async function LoginPage({ searchParams }: LoginPageProps) {
const { google } = await searchParams;
const locale = await getLocale();
const { account, auth } = getMessages(locale);
const initialMessage =
google === "failed" ? auth.googleSignInFailed : undefined;
return (
<AccountShell
eyebrow={account.loginEyebrow}
title={account.loginTitle}
description={account.loginDescription}
locale={locale}
>
<AuthForm initialMessage={initialMessage} locale={locale} mode="login" />
</AccountShell>
);
}
|