mirror of
https://github.com/bitwarden/android.git
synced 2024-12-26 10:58:29 +03:00
migrate old enc key (#2732)
This commit is contained in:
parent
2e5fb414b5
commit
12c72b2833
1 changed files with 6 additions and 0 deletions
|
@ -1088,6 +1088,12 @@ namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
await _stateService.SetUserKeyBiometricUnlockAsync(userKey, userId);
|
await _stateService.SetUserKeyBiometricUnlockAsync(userKey, userId);
|
||||||
}
|
}
|
||||||
|
// Clear old enc key only if we don't need to still migrate PIN
|
||||||
|
if (await _stateService.GetPinProtectedAsync() == null
|
||||||
|
&& await _stateService.GetPinProtectedKeyAsync() == null)
|
||||||
|
{
|
||||||
|
await _stateService.SetEncKeyEncryptedAsync(null, userId);
|
||||||
|
}
|
||||||
await _stateService.SetKeyEncryptedAsync(null, userId);
|
await _stateService.SetKeyEncryptedAsync(null, userId);
|
||||||
|
|
||||||
// Set encrypted user key just in case the user locks without syncing
|
// Set encrypted user key just in case the user locks without syncing
|
||||||
|
|
Loading…
Reference in a new issue