UX: Hide social login buttons when requesting for 2FA token.
This commit is contained in:
parent
fb75f188ba
commit
674239718c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue