diff options
Diffstat (limited to 'templates/user/auth/u2f.tmpl')
-rw-r--r-- | templates/user/auth/u2f.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/user/auth/u2f.tmpl b/templates/user/auth/u2f.tmpl index 2013d14937..8b04866bbc 100644 --- a/templates/user/auth/u2f.tmpl +++ b/templates/user/auth/u2f.tmpl @@ -12,9 +12,11 @@ <p>{{.i18n.Tr "u2f_sign_in"}}</p> </div> <div id="wait-for-key" class="ui attached segment"><div class="ui active indeterminate inline loader"></div> {{.i18n.Tr "u2f_press_button"}} </div> - <div class="ui attached segment"> - <a href="{{AppSubUrl}}/user/two_factor">{{.i18n.Tr "u2f_use_twofa"}}</a> - </div> + {{if .TOTPEnrolled}} + <div class="ui attached segment"> + <a href="{{AppSubUrl}}/user/two_factor">{{.i18n.Tr "u2f_use_twofa"}}</a> + </div> + {{end}} </div> </div> </div> |