mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
fix(core): handling error message when sending verify change email (#5894)
This commit is contained in:
@@ -78,6 +78,13 @@ export const AuthPage = (): ReactElement | null => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!res?.sendVerifyChangeEmail) {
|
||||||
|
pushNotification({
|
||||||
|
title: t['com.affine.auth.sent.change.email.fail'](),
|
||||||
|
type: 'error',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return !!res?.sendVerifyChangeEmail;
|
return !!res?.sendVerifyChangeEmail;
|
||||||
},
|
},
|
||||||
[pushNotification, searchParams, sendVerifyChangeEmail, t]
|
[pushNotification, searchParams, sendVerifyChangeEmail, t]
|
||||||
|
|||||||
@@ -435,6 +435,7 @@
|
|||||||
"com.affine.auth.send.set.password.link": "Send set link",
|
"com.affine.auth.send.set.password.link": "Send set link",
|
||||||
"com.affine.auth.sent": "Sent",
|
"com.affine.auth.sent": "Sent",
|
||||||
"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.email.fail": "The verification link failed to be sent, please try again later.",
|
||||||
"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.reset.password.success.message": "Your password has upgraded! You can sign in AFFiNE Cloud with new 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.sent.set.password.hint": "Set password link has been sent.",
|
"com.affine.auth.sent.set.password.hint": "Set password link has been sent.",
|
||||||
|
|||||||
Reference in New Issue
Block a user