mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +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
|
<AuthPageContainer
|
||||||
title={
|
title={
|
||||||
hasSetUp
|
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']()
|
: t['com.affine.auth.reset.password.page.title']()
|
||||||
}
|
}
|
||||||
subtitle={
|
subtitle={
|
||||||
hasSetUp ? (
|
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']()}
|
{t['com.affine.auth.page.sent.email.subtitle']()}
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ export const PasswordInput: FC<
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!password || !confirmPassword) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (password === confirmPassword) {
|
if (password === confirmPassword) {
|
||||||
setConfirmStatus('success');
|
setConfirmStatus('success');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -33,12 +33,12 @@ export const SetPasswordPage: FC<{
|
|||||||
<AuthPageContainer
|
<AuthPageContainer
|
||||||
title={
|
title={
|
||||||
hasSetUp
|
hasSetUp
|
||||||
? t['com.affine.auth.sign.up.success.title']()
|
? t['com.affine.auth.set.password.page.success']()
|
||||||
: t['com.affine.auth.page.sent.email.title']()
|
: t['com.affine.auth.set.password.page.title']()
|
||||||
}
|
}
|
||||||
subtitle={
|
subtitle={
|
||||||
hasSetUp ? (
|
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']()}
|
{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.email.hint": "Verification link has been sent.",
|
||||||
"com.affine.auth.sent.change.password.hint": "Reset password 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.sent.set.password.hint": "Set password link has been sent.",
|
||||||
|
|
||||||
"com.affine.auth.set.email.save": "Save Email",
|
"com.affine.auth.set.email.save": "Save Email",
|
||||||
"com.affine.auth.set.password": "Set password",
|
"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.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.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.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.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": "Set a password at least 8 letters long",
|
||||||
"com.affine.auth.set.password.placeholder.confirm": "Confirm password",
|
"com.affine.auth.set.password.placeholder.confirm": "Confirm password",
|
||||||
|
|||||||
Reference in New Issue
Block a user