add maxlength attribute for 2FA input fields

This commit is contained in:
Maja Komel 2018-07-26 10:31:20 +02:00
parent 67b6539d98
commit e8d82f48bc
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
<div class="control-group">
<div class="controls">
{{second-factor-input value=secondFactorToken inputId='second-factor-token'}}
{{second-factor-input maxlength=6 value=secondFactorToken inputId='second-factor-token'}}
</div>
<div class='instructions controls'>
@ -72,7 +72,7 @@
<label class="control-label input-prepend">{{i18n 'user.second_factor.label'}}</label>
<div class="controls">
{{second-factor-input value=secondFactorToken inputId='second-factor-token'}}
{{second-factor-input maxlength=6 value=secondFactorToken inputId='second-factor-token'}}
</div>
</div>