mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
migrate old enc key (#2732)
This commit is contained in:
parent
2e5fb414b5
commit
12c72b2833
@ -1088,6 +1088,12 @@ namespace Bit.Core.Services
|
||||
{
|
||||
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);
|
||||
|
||||
// Set encrypted user key just in case the user locks without syncing
|
||||
|
Loading…
Reference in New Issue
Block a user