1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-07 02:53:28 +00:00

totp flag on logins

This commit is contained in:
Kyle Spearrin
2017-07-07 14:07:30 -04:00
parent 49dbf4945f
commit 08b432775e
4 changed files with 8 additions and 10 deletions

View File

@@ -2,18 +2,14 @@
.module('bit.vault')
.controller('organizationVaultEditLoginController', function ($scope, apiService, $uibModalInstance, cryptoService,
cipherService, passwordService, loginId, $analytics, authService, orgId, $uibModal) {
cipherService, passwordService, loginId, $analytics, orgId, $uibModal) {
$analytics.eventTrack('organizationVaultEditLoginController', { category: 'Modal' });
$scope.login = {};
$scope.hideFolders = $scope.hideFavorite = $scope.fromOrg = true;
authService.getUserProfile().then(function (userProfile) {
var orgProfile = userProfile.organizations[orgId];
$scope.useTotp = orgProfile.useTotp;
});
apiService.logins.getAdmin({ id: loginId }, function (login) {
$scope.login = cipherService.decryptLogin(login);
$scope.useTotp = $scope.login.organizationUseTotp;
});
$scope.save = function (model) {