enhance(frontend): 2FAのバックアップコードに番号を付けて複数個だと分かりやすくする (#135)

This commit is contained in:
まっちゃとーにゅ 2023-08-07 04:31:59 +09:00 committed by GitHub
parent 7504cde8f4
commit cd509db11e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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') }),
}); });
} }