1
0
mirror of https://github.com/bitwarden/web synced 2025-12-16 08:13:22 +00:00

set private key when logging in

This commit is contained in:
Kyle Spearrin
2017-02-21 00:29:15 -05:00
parent 086d924f06
commit cf144aa2c1
2 changed files with 27 additions and 10 deletions

View File

@@ -33,6 +33,9 @@ angular
tokenService.setToken(response.access_token);
tokenService.setRefreshToken(response.refresh_token);
cryptoService.setKey(key);
if (response.EncryptedPrivateKey) {
cryptoService.setPrivateKey(response.EncryptedPrivateKey, key);
}
deferred.resolve();
}, function (error) {
if (error.status === 400 && error.data.TwoFactorProviders && error.data.TwoFactorProviders.length) {