Skip to content

Commit

Permalink
Only show RT button and text when appropriate
Browse files Browse the repository at this point in the history
When the user is in possession of a vetted token and a recovery token,
then display the RT text and add RT button (if one is available for
addition)
  • Loading branch information
MKodde authored and phavekes committed Jun 6, 2023
1 parent 9f8e5b9 commit 19db31e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if selfAssertedTokenRegistration %}
{% if (selfAssertedTokenRegistration and recoveryTokens is not empty) or (selfAssertedTokenRegistration and vettedSecondFactors.elements is not empty) %}
<hr>
<h2>{{ 'ss.recovery_token_list.title'|trans }}</h2>

Expand Down Expand Up @@ -40,7 +40,7 @@
<p>{{ 'ss.second_factor.list.text.no_recovery_tokens'|trans }}</p>
{% endif %}

{% if hasRemainingRecoveryTokens %}
{% if hasRemainingRecoveryTokens and vettedSecondFactors.elements is not empty %}
<p>
<a href="{{ path('ss_recovery_token_display_types') }}"
class="btn btn-primary pull-right">
Expand Down

0 comments on commit 19db31e

Please sign in to comment.