Give it 3 seconds
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user