2FA

<% if authenticated_model.qv_account.has_two_factors? %>

You have set up 2FA.

<%= button_to 'Deactivate your 2FA credentials', twofa_path, method: :delete %>

<% else %>

You do not have 2FA set up.

<% if QuoVadis.two_factor_authentication_mandatory %>

Please <%= link_to 'set it up', new_totp_path %> now.

<% else %>

You can <%= link_to 'set it up', new_totp_path %> if you like.

<% end %> <% end %>

You have <%= link_to pluralize(@recovery_codes_count, 'recovery code'), recovery_codes_path %> left.