Fix address whitelist check
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user