diff --git a/app/assets/javascripts/discourse/controllers/login.js.es6 b/app/assets/javascripts/discourse/controllers/login.js.es6 index 7067dbc11ba..76868ed9832 100644 --- a/app/assets/javascripts/discourse/controllers/login.js.es6 +++ b/app/assets/javascripts/discourse/controllers/login.js.es6 @@ -98,7 +98,11 @@ export default Ember.Controller.extend(ModalFunctionality, { if (result.reason === 'invalid_second_factor' && !self.get('secondFactorRequired')) { $('#modal-alert').hide(); - self.set('secondFactorRequired', true); + self.setProperties({ + 'secondFactorRequired': true, + 'showLoginButtons': false, + }); + $("#credentials").hide(); $("#second-factor").show(); return;