1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

rename loginService to cipherService

This commit is contained in:
Kyle Spearrin
2017-10-16 23:11:32 -04:00
parent e7f7c52247
commit 6722793087
17 changed files with 108 additions and 108 deletions

View File

@@ -1,7 +1,7 @@
angular
.module('bit.vault')
.controller('vaultAddCipherController', function ($scope, $state, $stateParams, loginService, folderService,
.controller('vaultAddCipherController', function ($scope, $state, $stateParams, cipherService, folderService,
cryptoService, toastr, utilsService, $analytics, i18nService, constantsService) {
$scope.i18n = i18nService;
$scope.constants = constantsService;
@@ -51,9 +51,9 @@
return;
}
$scope.savePromise = loginService.encrypt($scope.cipher).then(function (cipherModel) {
$scope.savePromise = cipherService.encrypt($scope.cipher).then(function (cipherModel) {
var cipher = new Cipher(cipherModel, true);
return loginService.saveWithServer(cipher);
return cipherService.saveWithServer(cipher);
}).then(function (c) {
$analytics.eventTrack('Added Cipher');
toastr.success(i18nService.addedLogin);