mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
provide callback functions
This commit is contained in:
@@ -15,7 +15,11 @@
|
|||||||
|
|
||||||
$scope.processing = true;
|
$scope.processing = true;
|
||||||
$scope.savePromise = cryptoService.hashPassword($scope.masterPassword).then(function (hash) {
|
$scope.savePromise = cryptoService.hashPassword($scope.masterPassword).then(function (hash) {
|
||||||
return cipherService.updateKey(hash);
|
return cipherService.updateKey(hash, function () {
|
||||||
|
return null;
|
||||||
|
}, function () {
|
||||||
|
return null;
|
||||||
|
});
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
$uibModalInstance.dismiss('cancel');
|
$uibModalInstance.dismiss('cancel');
|
||||||
authService.logOut();
|
authService.logOut();
|
||||||
|
|||||||
Reference in New Issue
Block a user