blob: ce31c1b0511c4ca614061fba2d64574615f7e645 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// 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 Link from "next/link";
import { AccountShell } from "@/components/AccountShell";
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.recoveryTitle,
description: metadata.recoveryDescription,
robots: { index: false, follow: false },
};
}
export default async function RecoverPage() {
const locale = await getLocale();
const { account } = getMessages(locale);
return (
<AccountShell
eyebrow={account.recoveryEyebrow}
title={account.recoveryTitle}
description={account.recoveryDescription}
locale={locale}
>
<section
className="auth-form recovery-panel"
aria-labelledby="recovery-heading"
>
<div className="form-heading">
<p className="eyebrow">{account.recoveryPanelEyebrow}</p>
<h2 id="recovery-heading">{account.recoveryPanelTitle}</h2>
<p>{account.recoveryPanelDescription}</p>
</div>
<a
className="button auth-submit"
href={`mailto:support@progmasoft.com?subject=${encodeURIComponent(account.recoveryEmailSubject)}`}
>
{account.contactSupport}
</a>
<p className="form-switch">
{account.rememberedPassword}{" "}
<Link href="/login">{account.returnToSignIn}</Link>
</p>
</section>
</AccountShell>
);
}
|