1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

move logins to ciphers apis

This commit is contained in:
Kyle Spearrin
2017-09-20 16:45:13 -04:00
parent 06a877c755
commit f7fbdf2081
12 changed files with 24 additions and 31 deletions

View File

@@ -13,10 +13,10 @@
authService.getUserProfile().then(function (profile) {
$scope.isPremium = profile.premium;
return apiService.logins.get({ id: loginId }).$promise;
}).then(function (login) {
$scope.login = cipherService.decryptLogin(login);
$scope.readOnly = !login.Edit;
return apiService.ciphers.get({ id: loginId }).$promise;
}).then(function (cipher) {
$scope.login = cipherService.decryptLogin(cipher);
$scope.readOnly = !$scope.login.edit;
$scope.canUseAttachments = $scope.isPremium || $scope.login.organizationId;
$scope.loading = false;
}, function () {