mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
fixes during crypto service testing
This commit is contained in:
@@ -26,7 +26,9 @@ angular
|
||||
$scope.submit = function () {
|
||||
userService.getEmail(function (email) {
|
||||
var key = cryptoService.makeKey($scope.masterPassword, email);
|
||||
cryptoService.hashPassword($scope.masterPassword, key).then(function (keyHash) {
|
||||
var keyHash;
|
||||
cryptoService.hashPassword($scope.masterPassword, key).then(function (theKeyHash) {
|
||||
keyHash = theKeyHash;
|
||||
return cryptoService.getKeyHash();
|
||||
}).then(function (storedKeyHash) {
|
||||
if (storedKeyHash && keyHash && storedKeyHash === keyHash) {
|
||||
|
||||
Reference in New Issue
Block a user