mirror of
https://github.com/bitwarden/server.git
synced 2024-12-11 15:17:44 +01:00
Add more logging
This commit is contained in:
parent
0b60bb93d8
commit
292fa3efc2
@ -47,6 +47,10 @@ public class RegenerateUserAsymmetricKeysCommand : IRegenerateUserAsymmetricKeys
|
|||||||
x.Status is EmergencyAccessStatusType.Confirmed or EmergencyAccessStatusType.RecoveryApproved
|
x.Status is EmergencyAccessStatusType.Confirmed or EmergencyAccessStatusType.RecoveryApproved
|
||||||
or EmergencyAccessStatusType.RecoveryInitiated);
|
or EmergencyAccessStatusType.RecoveryInitiated);
|
||||||
|
|
||||||
|
_logger.LogInformation(
|
||||||
|
"User asymmetric keys regeneration requested. UserId: {userId} OrganizationMembership: {inOrganizations} DesignatedEmergencyAccess: {hasDesignatedEmergencyAccess} DeviceType: {deviceType}",
|
||||||
|
userAsymmetricKeys.UserId, inOrganizations, hasDesignatedEmergencyAccess, _currentContext.DeviceType);
|
||||||
|
|
||||||
// For now, don't regenerate asymmetric keys for user's with organization membership and designated emergency access.
|
// For now, don't regenerate asymmetric keys for user's with organization membership and designated emergency access.
|
||||||
if (inOrganizations || hasDesignatedEmergencyAccess)
|
if (inOrganizations || hasDesignatedEmergencyAccess)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user