Skip to content
Permalink
Browse files

FIX: Blank second factor gets default name

  • Loading branch information...
featheredtoast committed Aug 12, 2019
1 parent 44f4801 commit 4cd0cd2f8e20fa0a22c9d7e0fc57f485a98156b9
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/assets/javascripts/discourse/templates/preferences-second-factor.hbs
@@ -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)

1 comment on commit 4cd0cd2

@discoursebot

This comment has been minimized.

Copy link

commented on 4cd0cd2 Aug 12, 2019

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/second-factor-landing-page-register-multiple-totp-keys/116279/7

Please sign in to comment.
You can’t perform that action at this time.