feat(connected-accounts): email-merge confirmation via emailed one-time code

When linking an email that belongs to another account, the backend now mails a
one-time code to it (merge_verification='email_code') instead of asking for that
account's password. Add a 6-digit code step: on the email_code response show the
code input, verify via authApi.verifyEmailMerge → on success redirect to /merge.
Preview/execute already go through apiClient (JWT), so they satisfy the new
initiator-bound merge endpoints. i18n in ru/en/zh/fa.
This commit is contained in:
c0mrade
2026-06-04 19:06:54 +03:00
parent c6fc167d80
commit 3224320095
6 changed files with 186 additions and 63 deletions

View File

@@ -4595,7 +4595,12 @@
},
"backToAccounts": "Back to accounts"
},
"emailMergePasswordRequired": "This email already belongs to another account. To merge the accounts, enter that account's password."
"emailMergePasswordRequired": "This email already belongs to another account. To merge the accounts, enter that account's password.",
"emailMergeCodeSent": "A confirmation code was sent to that email.",
"emailMergeCodeDescription": "This email already belongs to another account. We sent a code to it — enter it to confirm ownership and merge the accounts.",
"emailMergeCodeLabel": "Code from the email",
"emailMergeConfirm": "Confirm and merge",
"emailMergeCodeInvalid": "Invalid or expired code"
},
"theme": {
"colors": "Theme Colors",