|
@@ -32,7 +32,7 @@ public class IdentityDomainService : IIdentityDomainService, IScopeDependency
|
|
|
if (string.IsNullOrEmpty(request.Nonce)) return false;
|
|
|
var now = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
|
|
|
_logger.LogInformation($"now:{now}, req:{request.Timestamp}");
|
|
|
- if (request.Timestamp > now) return false;
|
|
|
+ if ((request.Timestamp - now) > 3) return false;
|
|
|
if ((now - request.Timestamp) >= 60) return false;
|
|
|
var nonce = _cacheAccountNonce.Get(request.Username)?.Nonce;
|
|
|
_logger.LogInformation($"nonce:{nonce}, reqnonce:{request.Nonce}");
|