Feat/reset password (#1566)

* feat: reset password with recovery key

* perf: formatting and multi language
This commit is contained in:
Junyan Qin (Chin)
2025-07-05 17:36:35 +08:00
committed by GitHub
parent a8d03c98dc
commit a01706d163
13 changed files with 423 additions and 1 deletions
+11 -1
View File
@@ -34,6 +34,7 @@ import langbotIcon from '@/app/assets/langbot-logo.webp';
import { toast } from 'sonner';
import { useTranslation } from 'react-i18next';
import i18n from '@/i18n';
import Link from 'next/link';
const formSchema = (t: (key: string) => string) =>
z.object({
@@ -209,7 +210,16 @@ export default function Login() {
name="password"
render={({ field }) => (
<FormItem>
<FormLabel>{t('common.password')}</FormLabel>
<div className="flex justify-between">
<FormLabel>{t('common.password')}</FormLabel>
<Link
href="/reset-password"
className="text-sm text-blue-500"
>
{t('common.forgotPassword')}
</Link>
</div>
<FormControl>
<div className="relative">
<Lock className="absolute left-3 top-3 h-4 w-4 text-gray-400" />