diff --git a/web/src/components/auth/reset-password/reset-password-form.tsx b/web/src/components/auth/reset-password/reset-password-form.tsx index a1f627b..e9367aa 100644 --- a/web/src/components/auth/reset-password/reset-password-form.tsx +++ b/web/src/components/auth/reset-password/reset-password-form.tsx @@ -16,8 +16,9 @@ import { useTranslations } from "next-intl" import { toast } from "sonner" import { InputOTPControlled } from "@/components/common/input-otp" import { BaseErrorResponse } from "@/models/resp" -import { loginPath } from "@/hooks/use-route" +import { loginPath, registerPath } from "@/hooks/use-route" import router from "next/router" +import Link from "next/link" export function ResetPasswordForm({ className, @@ -108,8 +109,16 @@ export function ResetPasswordForm({ > {t("title")} +
+ + {commonT("login")} + + {" "} + + {commonT("register")} + +
- {/* TODO 回归登录和注册链接 */} diff --git a/web/src/locales/zh-CN.json b/web/src/locales/zh-CN.json index 739a786..4371301 100644 --- a/web/src/locales/zh-CN.json +++ b/web/src/locales/zh-CN.json @@ -64,6 +64,7 @@ "minutesAgo": "分钟前", "obtain": "获取", "password": "密码", + "register": "注册", "secondsAgo": "秒前", "send_verify_code": "发送验证码", "submit": "提交",