hide password-reset fields' requisiteness on phone-enabled auth (#88384) #550

Merged
pmarillonnet merged 1 commits from wip/88384-a2-registration-password-reset-hide-requisiteness-phone-authn into main 2024-04-02 14:44:52 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
</p>
{% endif %}
<form method="post" class="pk-mark-optional-fields">
<form method="post" class="{% if not is_phone_authn_active %}pk-mark-optional-fields{% else %}pk-hide-requisiteness{% endif %}">
{% csrf_token %}
{{ form|with_template }}
<button class="submit-button">{% trans 'Submit' %}</button>