1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

crypto adjustments for new account enc key

This commit is contained in:
Kyle Spearrin
2017-05-31 10:25:25 -04:00
parent 9239588757
commit 9aa2014e85
3 changed files with 37 additions and 2 deletions

View File

@@ -35,6 +35,10 @@ angular
tokenService.setRefreshToken(response.refresh_token);
cryptoService.setKey(key);
if (response.Key) {
cryptoService.setEncKey(response.Key, key);
}
if (response.PrivateKey) {
cryptoService.setPrivateKey(response.PrivateKey, key);
return true;