mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-31 08:20:37 +01:00
set profile after auth logIn
This commit is contained in:
parent
19203e976b
commit
5e5e3b5359
@ -33,10 +33,13 @@ angular
|
||||
tokenService.setToken(response.access_token);
|
||||
tokenService.setRefreshToken(response.refresh_token);
|
||||
cryptoService.setKey(key);
|
||||
if (response.EncryptedPrivateKey) {
|
||||
cryptoService.setPrivateKey(response.EncryptedPrivateKey, key);
|
||||
if (response.PrivateKey) {
|
||||
cryptoService.setPrivateKey(response.PrivateKey, key);
|
||||
}
|
||||
deferred.resolve();
|
||||
|
||||
_service.setUserProfile().then(function () {
|
||||
deferred.resolve();
|
||||
});
|
||||
}, function (error) {
|
||||
if (error.status === 400 && error.data.TwoFactorProviders && error.data.TwoFactorProviders.length) {
|
||||
deferred.resolve(error.data.TwoFactorProviders);
|
||||
|
Loading…
Reference in New Issue
Block a user