diff --git a/app/assets/javascripts/discourse/controllers/login.js.es6 b/app/assets/javascripts/discourse/controllers/login.js.es6 index f5cc976902f..710a2a084ab 100644 --- a/app/assets/javascripts/discourse/controllers/login.js.es6 +++ b/app/assets/javascripts/discourse/controllers/login.js.es6 @@ -105,6 +105,8 @@ export default Ember.Controller.extend(ModalFunctionality, { $("#credentials").hide(); $("#second-factor").show(); + $("#second-factor input").focus(); + return; } else if (result.reason === 'not_activated') { self.send('showNotActivated', { diff --git a/app/assets/javascripts/discourse/templates/components/second-factor-form.hbs b/app/assets/javascripts/discourse/templates/components/second-factor-form.hbs index a1d5e033405..c6e6e6d4355 100644 --- a/app/assets/javascripts/discourse/templates/components/second-factor-form.hbs +++ b/app/assets/javascripts/discourse/templates/components/second-factor-form.hbs @@ -4,9 +4,6 @@ -
- - {{yield}}