mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
fix: wrong text in change password page (#4244)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -32,12 +32,12 @@ export const ChangePasswordPage: FC<{
|
||||
<AuthPageContainer
|
||||
title={
|
||||
hasSetUp
|
||||
? t['com.affine.auth.set.password.page.success']()
|
||||
? t['com.affine.auth.reset.password.page.success']()
|
||||
: t['com.affine.auth.reset.password.page.title']()
|
||||
}
|
||||
subtitle={
|
||||
hasSetUp ? (
|
||||
t['com.affine.auth.sign.up.success.subtitle']()
|
||||
t['com.affine.auth.sent.reset.password.success.message']()
|
||||
) : (
|
||||
<>
|
||||
{t['com.affine.auth.page.sent.email.subtitle']()}
|
||||
|
||||
@@ -53,6 +53,9 @@ export const PasswordInput: FC<
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!password || !confirmPassword) {
|
||||
return;
|
||||
}
|
||||
if (password === confirmPassword) {
|
||||
setConfirmStatus('success');
|
||||
} else {
|
||||
|
||||
@@ -33,12 +33,12 @@ export const SetPasswordPage: FC<{
|
||||
<AuthPageContainer
|
||||
title={
|
||||
hasSetUp
|
||||
? t['com.affine.auth.sign.up.success.title']()
|
||||
: t['com.affine.auth.page.sent.email.title']()
|
||||
? t['com.affine.auth.set.password.page.success']()
|
||||
: t['com.affine.auth.set.password.page.title']()
|
||||
}
|
||||
subtitle={
|
||||
hasSetUp ? (
|
||||
t['com.affine.auth.sign.up.success.subtitle']()
|
||||
t['com.affine.auth.sent.set.password.success.message']()
|
||||
) : (
|
||||
<>
|
||||
{t['com.affine.auth.page.sent.email.subtitle']()}
|
||||
|
||||
@@ -92,11 +92,15 @@
|
||||
"com.affine.auth.sent.change.email.hint": "Verification link has been sent.",
|
||||
"com.affine.auth.sent.change.password.hint": "Reset password link has been sent.",
|
||||
"com.affine.auth.sent.set.password.hint": "Set password link has been sent.",
|
||||
|
||||
"com.affine.auth.set.email.save": "Save Email",
|
||||
"com.affine.auth.set.password": "Set password",
|
||||
"com.affine.auth.set.password.message": "Please set a password of 8-20 characters with both letters and numbers to continue signing up with ",
|
||||
"com.affine.auth.change.email.message": "Your current email is {{email}}. We’ll send a temporary verification link to this email.",
|
||||
"com.affine.auth.set.password.page.success": "Password set successful",
|
||||
"com.affine.auth.reset.password.page.success": "Password reset successful",
|
||||
"com.affine.auth.sent.set.password.success.message": "Your password has saved! You can sign in AFFiNE Cloud with email and password!",
|
||||
"com.affine.auth.sent.reset.password.success.message": "Your password has upgraded! You can sign in AFFiNE Cloud with new password!",
|
||||
"com.affine.auth.set.password.page.title": "Set your AFFiNE Cloud password",
|
||||
"com.affine.auth.set.password.placeholder": "Set a password at least 8 letters long",
|
||||
"com.affine.auth.set.password.placeholder.confirm": "Confirm password",
|
||||
|
||||
Reference in New Issue
Block a user