diff --git a/app/assets/javascripts/discourse/templates/components/second-factor-input.hbs b/app/assets/javascripts/discourse/templates/components/second-factor-input.hbs index a6aeda1a980..6cd05a616b9 100644 --- a/app/assets/javascripts/discourse/templates/components/second-factor-input.hbs +++ b/app/assets/javascripts/discourse/templates/components/second-factor-input.hbs @@ -2,7 +2,7 @@ type="tel" pattern='[0-9]{6}' maxlength='6' - id="login-second-factor" + id=inputId autocorrect="off" autocapitalize="off" autofocus="autofocus"}} diff --git a/app/assets/javascripts/discourse/templates/mobile/modal/login.hbs b/app/assets/javascripts/discourse/templates/mobile/modal/login.hbs index eb36a6ff6dc..2c9dc879a8d 100644 --- a/app/assets/javascripts/discourse/templates/mobile/modal/login.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/modal/login.hbs @@ -45,7 +45,7 @@ {{#second-factor-form}} - {{second-factor-input value=loginSecondFactor}} + {{second-factor-input value=loginSecondFactor inputId='login-second-factor'}} {{/second-factor-form}} {{/if}} diff --git a/app/assets/javascripts/discourse/templates/modal/login.hbs b/app/assets/javascripts/discourse/templates/modal/login.hbs index ab877c95354..35f7015629c 100644 --- a/app/assets/javascripts/discourse/templates/modal/login.hbs +++ b/app/assets/javascripts/discourse/templates/modal/login.hbs @@ -34,7 +34,7 @@ {{#second-factor-form}} - {{second-factor-input value=loginSecondFactor}} + {{second-factor-input value=loginSecondFactor inputId='login-second-factor'}} {{/second-factor-form}} {{/if}} diff --git a/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs b/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs index 528b249ebcf..9df31c26656 100644 --- a/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs +++ b/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs @@ -19,7 +19,7 @@