Give it 3 seconds

This commit is contained in:
Girish Ramakrishnan
2021-10-19 19:08:53 -07:00
parent a2b4d945a2
commit f2cf630aa2

View File

@@ -313,8 +313,10 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
Client.disableTwoFactorAuthenticationByUserId($scope.useredit.userInfo.id, function (error) {
if (error) return console.error(error);
$scope.useredit.reset2FABusy = false;
$scope.useredit.userInfo.twoFactorAuthenticationEnabled = false;
$timeout(function () {
$scope.useredit.userInfo.twoFactorAuthenticationEnabled = false;
$scope.useredit.reset2FABusy = false;
}, 3000);
});
}
};