enhance(frontend): 2FAのバックアップコードに番号を付けて複数個だと分かりやすくする (#135)
This commit is contained in:
parent
7504cde8f4
commit
cd509db11e
|
@ -127,7 +127,7 @@ async function registerTOTP() {
|
||||||
|
|
||||||
await os.alert({
|
await os.alert({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
text: i18n.t('_2fa.step4', { codes: backupCodes.join('\n') }),
|
text: i18n.t('_2fa.step4', { codes: backupCodes.map((code, index) => `${String(index + 1).padStart(2, '0')}. ${code}`).join('\n') }),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue