Fix incorrect ids for 2FA inputs.

This commit is contained in:
Guo Xiang Tan 2018-02-27 10:12:22 +08:00
parent 8c51ac448a
commit 24f3b78548
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
type="tel" type="tel"
pattern='[0-9]{6}' pattern='[0-9]{6}'
maxlength='6' maxlength='6'
id="login-second-factor" id=inputId
autocorrect="off" autocorrect="off"
autocapitalize="off" autocapitalize="off"
autofocus="autofocus"}} autofocus="autofocus"}}

View File

@ -45,7 +45,7 @@
</table> </table>
</div> </div>
{{#second-factor-form}} {{#second-factor-form}}
{{second-factor-input value=loginSecondFactor}} {{second-factor-input value=loginSecondFactor inputId='login-second-factor'}}
{{/second-factor-form}} {{/second-factor-form}}
</form> </form>
{{/if}} {{/if}}

View File

@ -34,7 +34,7 @@
</table> </table>
</div> </div>
{{#second-factor-form}} {{#second-factor-form}}
{{second-factor-input value=loginSecondFactor}} {{second-factor-input value=loginSecondFactor inputId='login-second-factor'}}
{{/second-factor-form}} {{/second-factor-form}}
</form> </form>
{{/if}} {{/if}}

View File

@ -19,7 +19,7 @@
<div class="control-group"> <div class="control-group">
<div class="controls"> <div class="controls">
{{second-factor-input value=secondFactorToken}} {{second-factor-input value=secondFactorToken inputId='second-factor-token'}}
</div> </div>
<div class='instructions'> <div class='instructions'>
@ -65,7 +65,7 @@
<label class="control-label input-prepend">{{i18n 'login.second_factor_label'}}</label> <label class="control-label input-prepend">{{i18n 'login.second_factor_label'}}</label>
<div class="controls"> <div class="controls">
{{second-factor-input value=secondFactorToken}} {{second-factor-input value=secondFactorToken inputId='second-factor-token'}}
</div> </div>
</div> </div>