Skip to content

Commit

Permalink
update two factor auth remember me UI
Browse files Browse the repository at this point in the history
  • Loading branch information
imwhatiam committed Oct 16, 2023
1 parent b229b5f commit 2a82e10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seahub/two_factor/templates/two_factor/core/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ <h2 class="hd">{% trans "Two-Factor Authentication" %}</h2>
<label for="token">{% trans "Authentication token" %}</label>
<input id="token" type="text" name="{{form_prefix}}otp_token" value="" class="input two-factor-auth-login-token-input" autocomplete="off" autofocus="autofocus" />

{% if remember_days > 0 %}
<label class="checkbox-label remember">
<input type="checkbox" name="{{form_prefix}}remember_me" class="vam remember-input" />
<span class="vam">{% blocktrans %}Remember this computer for {{remember_days}} days{% endblocktrans %}</span>
</label>
{% endif %}

{% if form.errors %}
<p class="error">{% trans "Incorrect code" %}</p>
Expand Down

0 comments on commit 2a82e10

Please sign in to comment.