Skip to content

Commit b261a3e

Browse files
committed
feat(login): warn that 2FA needs a trusted device
Users who only configured SMS as their second factor reach the 2FA prompt with no way to complete it, and nothing in the login dialog says so up front. Show the constraint before the account fields, so it is read as a precondition of the form rather than discovered at the prompt. The warning sits below the dialog title, matching the title-warning-content order already used by the source dialog and the install page.
1 parent ebe2358 commit b261a3e

6 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎locales/en.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@
317317
,
318318
"login_modal": {
319319
"title": "Login Apple Account",
320+
"2fa_warning": "Only trusted devices can receive the 2FA code. Receiving it by SMS is not supported.",
320321
"button": {
321322
"close": "Close",
322323
"login": "Login",

‎locales/sr-Latn.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@
315315
},
316316
"login_modal": {
317317
"title": "Prijava na Apple nalog",
318+
"2fa_warning": "Samo pouzdani uređaji mogu da prime 2FA kod. Prijem putem SMS-a nije podržan.",
318319
"button": {
319320
"close": "Zatvori",
320321
"login": "Prijavi se",

‎locales/sr.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@
315315
},
316316
"login_modal": {
317317
"title": "Пријава на Apple налог",
318+
"2fa_warning": "Само поуздани уређаји могу да приме 2FA код. Пријем путем СМС-а није подржан.",
318319
"button": {
319320
"close": "Затвори",
320321
"login": "Пријави се",

‎locales/sv.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@
315315
},
316316
"login_modal": {
317317
"title": "Logga in på ett Apple-konto",
318+
"2fa_warning": "Endast betrodda enheter kan ta emot 2FA-koden. Att ta emot den via SMS stöds inte.",
318319
"button": {
319320
"close": "Stäng",
320321
"login": "Logga in",

‎locales/zh_cn.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@
317317
,
318318
"login_modal": {
319319
"title": "登录 Apple 帐号",
320+
"2fa_warning": "只支持受信任的设备接收 2FA,不支持短信接收",
320321
"button": {
321322
"close": "关闭",
322323
"login": "登录",

‎web/static/src/components/Login.vue‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
>
88
<div class="modal-box">
99
<h3 class="font-bold text-lg">{{ $t("install.login_modal.title") }}</h3>
10+
<div class="alert alert-warning atv-warning text-sm mt-3">
11+
<span class="whitespace-normal break-words">{{
12+
$t("install.login_modal.2fa_warning")
13+
}}</span>
14+
</div>
1015
<form ref="loginForm" class="flex flex-col gap-y-4 mt-4" @submit.prevent>
1116
<div class="form-control w-full">
1217
<label class="label">

0 commit comments

Comments
 (0)
⌂ 换网址