UX: Hide social login buttons when requesting for 2FA token.

This commit is contained in:
Guo Xiang Tan 2018-03-01 15:52:09 +08:00
parent fb75f188ba
commit 674239718c
1 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,11 @@ export default Ember.Controller.extend(ModalFunctionality, {
if (result.reason === 'invalid_second_factor' && !self.get('secondFactorRequired')) { if (result.reason === 'invalid_second_factor' && !self.get('secondFactorRequired')) {
$('#modal-alert').hide(); $('#modal-alert').hide();
self.set('secondFactorRequired', true); self.setProperties({
'secondFactorRequired': true,
'showLoginButtons': false,
});
$("#credentials").hide(); $("#credentials").hide();
$("#second-factor").show(); $("#second-factor").show();
return; return;