FIX: Blank second factor gets default name

This commit is contained in:
Jeff Wong 2019-08-11 22:13:33 -07:00
parent 44f4801087
commit 4cd0cd2f8e

View File

@ -36,7 +36,11 @@
label="user.second_factor.totp.add"}}
{{#each totps as |totp|}}
<div class="second-factor-item">
{{totp.name}}
{{#if totp.name}}
{{totp.name}}
{{else}}
{{i18n "user.second_factor.totp.default_name"}}
{{/if}}
{{#if isCurrentUser}}
{{d-button action=(action "editSecondFactor" totp)