mirror of
https://github.com/bitwarden/server.git
synced 2025-05-28 14:54:50 -05:00
[PM-19801] Clear device keys on deactivate (#5592)
* Clear device keys on deactivate * Fix migration * Add newline * Remove inactive device migration
This commit is contained in:
parent
1c6bac9dd5
commit
7c76eddee5
@ -77,6 +77,9 @@ public class DeviceService : IDeviceService
|
||||
|
||||
device.Active = false;
|
||||
device.RevisionDate = DateTime.UtcNow;
|
||||
device.EncryptedPrivateKey = null;
|
||||
device.EncryptedPublicKey = null;
|
||||
device.EncryptedUserKey = null;
|
||||
await _deviceRepository.UpsertAsync(device);
|
||||
|
||||
await _pushRegistrationService.DeleteRegistrationAsync(device.Id.ToString());
|
||||
|
Loading…
x
Reference in New Issue
Block a user