diff --git a/src/Managing.Application/Users/UserService.cs b/src/Managing.Application/Users/UserService.cs index 3e7516e..fcc2355 100644 --- a/src/Managing.Application/Users/UserService.cs +++ b/src/Managing.Application/Users/UserService.cs @@ -54,7 +54,7 @@ public class UserService : IUserService $"Message not good : {message} - Address : {address} - User : {name} - Signature : {signature}"); } - if (!_authorizedAddresses.Contains(recoveredAddress.ToLower())) + if (!_authorizedAddresses.Any(a => string.Equals(a, recoveredAddress, StringComparison.OrdinalIgnoreCase))) { _logger.LogWarning($"Address {recoveredAddress} not authorized"); throw new Exception("Address not authorized");