feat(core): support one time password (#9798)

This commit is contained in:
forehalo
2025-01-22 07:33:09 +00:00
parent bf797c7a0c
commit 5828eb53b6
16 changed files with 362 additions and 131 deletions

View File

@@ -1061,9 +1061,15 @@ export function useAFFiNEI18N(): {
*/
["com.affine.auth.send.verify.email.hint"](): string;
/**
* `Sent`
* `Resend code`
*/
["com.affine.auth.sent"](): string;
["com.affine.auth.sign.auth.code.resend"](): string;
/**
* `Resend in {{second}}s`
*/
["com.affine.auth.sign.auth.code.resend.hint"](options: {
readonly second: string;
}): string;
/**
* `The verification link failed to be sent, please try again later.`
*/
@@ -1161,10 +1167,6 @@ export function useAFFiNEI18N(): {
* `If you haven't received the email, please check your spam folder.`
*/
["com.affine.auth.sign.auth.code.message"](): string;
/**
* `Resend link`
*/
["com.affine.auth.sign.auth.code.resend.hint"](): string;
/**
* `Sign in with magic link`
*/
@@ -1217,14 +1219,6 @@ export function useAFFiNEI18N(): {
* ` You can click the link to create an account automatically.`
*/
["com.affine.auth.sign.sent.email.message.end"](): string;
/**
* `You can click the link to sign in automatically.`
*/
["com.affine.auth.sign.sent.email.message.sent-tips.sign-in"](): string;
/**
* `You can click the link to create an account automatically.`
*/
["com.affine.auth.sign.sent.email.message.sent-tips.sign-up"](): string;
/**
* `Sign up`
*/
@@ -6660,7 +6654,7 @@ export const TypedTrans: {
["3"]: JSX.Element;
}>>;
/**
* `An email with a magic link has been sent to <a>{{email}}</a>.`
* `To continue signing in, please enter the code that was sent to <a>{{email}}</a>.`
*/
["com.affine.auth.sign.sent.email.message.sent-tips"]: ComponentType<TypedTransProps<{
readonly email: string;

View File

@@ -256,7 +256,12 @@
"com.affine.auth.send.reset.password.link": "Send reset link",
"com.affine.auth.send.set.password.link": "Send set link",
"com.affine.auth.send.verify.email.hint": "Send verification link",
"com.affine.auth.sent": "Sent",
"com.affine.auth.sign.auth.code": "Verification code",
"com.affine.auth.sign.auth.code.hint": "To continue signing in, please enter the code that was sent to <a>{{email}}</a>.",
"com.affine.auth.sign.auth.code.invalid": "Invalid verification code",
"com.affine.auth.sign.auth.code.continue": "Continue with code",
"com.affine.auth.sign.auth.code.resend": "Resend code",
"com.affine.auth.sign.auth.code.resend.hint": "Resend in {{second}}s",
"com.affine.auth.sent.change.email.fail": "The verification link failed to be sent, please try again later.",
"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.",
@@ -280,7 +285,6 @@
"com.affine.auth.sign-out.confirm-modal.title": "Sign out?",
"com.affine.auth.sign.auth.code.message": "If you haven't received the email, please check your spam folder.",
"com.affine.auth.sign.auth.code.message.password": "Or <1>sign in with password</1> instead.",
"com.affine.auth.sign.auth.code.resend.hint": "Resend link",
"com.affine.auth.sign.auth.code.send-email.sign-in": "Sign in with magic link",
"com.affine.auth.sign.condition": "Terms of conditions",
"com.affine.auth.sign.email.continue": "Continue with email",
@@ -295,10 +299,6 @@
"com.affine.auth.sign.add-selfhosted.description": "The Self-Hosted instance is not hosted or deployed by AFFiNE. Your data will be stored on these instances. <1>Learn more about Self-Host details.</1>",
"com.affine.auth.sign.message": "By clicking “Continue with Google/Email” above, you acknowledge that you agree to AFFiNE's <1>Terms of Conditions</1> and <3>Privacy Policy</3>.",
"com.affine.auth.sign.policy": "Privacy policy",
"com.affine.auth.sign.sent.email.message.end": " You can click the link to create an account automatically.",
"com.affine.auth.sign.sent.email.message.sent-tips": "An email with a magic link has been sent to <a>{{email}}</a>.",
"com.affine.auth.sign.sent.email.message.sent-tips.sign-in": "You can click the link to sign in automatically.",
"com.affine.auth.sign.sent.email.message.sent-tips.sign-up": "You can click the link to create an account automatically.",
"com.affine.auth.sign.up": "Sign up",
"com.affine.auth.sign.up.sent.email.subtitle": "Create your account",
"com.affine.auth.sign.up.success.subtitle": "The app will automatically open or redirect to the web version. If you encounter any issues, you can also click the button below to manually open the AFFiNE app.",