1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

Merge pull request #2189 from rene-s/two-factor-input-autofocus

Set autofocus in two factor form with single input field
This commit is contained in:
Daniel Pan
2018-07-11 08:46:37 +08:00
committed by GitHub

View File

@@ -20,7 +20,7 @@
{% endif %}
<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" />
<input id="token" type="text" name="{{form_prefix}}otp_token" value="" class="input two-factor-auth-login-token-input" autocomplete="off" autofocus="autofocus" />
<label class="checkbox-label remember">
<input type="checkbox" name="{{form_prefix}}remember_me" class="vam remember-input" />