mirror of
https://github.com/bitwarden/server
synced 2026-01-27 23:03:31 +00:00
chore: dotnet format
This commit is contained in:
@@ -1039,7 +1039,7 @@ public class HandlebarsMailService : IMailService
|
||||
|
||||
public async Task SendEmergencyAccessInviteEmailAsync(EmergencyAccess emergencyAccess, string name, string token)
|
||||
{
|
||||
if(string.IsNullOrEmpty(emergencyAccess.Email))
|
||||
if (string.IsNullOrEmpty(emergencyAccess.Email))
|
||||
{
|
||||
throw new BadRequestException("Emergency Access not valid.");
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class EmergencyAccessRotationValidatorTests
|
||||
KeyEncrypted = e.KeyEncrypted,
|
||||
Type = e.Type
|
||||
}).ToList();
|
||||
userEmergencyAccess.Add(new EmergencyAccessDetails { Id = Guid.NewGuid(), GrantorEmail="grantor@example.com", KeyEncrypted = "TestKey" });
|
||||
userEmergencyAccess.Add(new EmergencyAccessDetails { Id = Guid.NewGuid(), GrantorEmail = "grantor@example.com", KeyEncrypted = "TestKey" });
|
||||
sutProvider.GetDependency<IEmergencyAccessRepository>().GetManyDetailsByGrantorIdAsync(user.Id)
|
||||
.Returns(userEmergencyAccess);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user