mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
Enable Nullable In Auth Repositories (#4600)
This commit is contained in:
@@ -24,6 +24,7 @@ public class AccountsControllerTest : IClassFixture<ApiApplicationFactory>
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
||||
var content = await response.Content.ReadFromJsonAsync<ProfileResponseModel>();
|
||||
Assert.NotNull(content);
|
||||
Assert.Equal("integration-test@bitwarden.com", content.Email);
|
||||
Assert.Null(content.Name);
|
||||
Assert.False(content.EmailVerified);
|
||||
|
||||
@@ -32,6 +32,6 @@ public class LoginHelper
|
||||
var organizationApiKeyRepository = factory.GetService<IOrganizationApiKeyRepository>();
|
||||
var apiKeys = await organizationApiKeyRepository.GetManyByOrganizationIdTypeAsync(organizationId);
|
||||
var clientId = $"organization.{organizationId}";
|
||||
return (clientId, apiKeys.SingleOrDefault().ApiKey);
|
||||
return (clientId, apiKeys.Single().ApiKey);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user