diff --git a/CHANGELOG.md b/CHANGELOG.md index 66fbf1d..4420e55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Changed the minimum requirement of Craft to version 3.2.1. - Renamed “Blacklist” to “Deny List”, a list of IP addresses that will always be denied. - The hidden input field now has an `autocomplete` attribute set to `off`. +- IP addresses are now stored as anonymous hash values. ### Removed - Removed the “Excluded URI Patterns” setting. Use the new “Exclude Controller Actions” setting instead. diff --git a/src/services/SnaptchaService.php b/src/services/SnaptchaService.php index bbb4cdd..991f296 100644 --- a/src/services/SnaptchaService.php +++ b/src/services/SnaptchaService.php @@ -217,7 +217,7 @@ public function validateField(string $value = null): bool // Delete all expired records SnaptchaRecord::deleteAll([ - '<', 'timestamp', time() - ($record->expirationTime * 60) + '<', 'timestamp', time() - (Snaptcha::$plugin->settings->expirationTime * 60) ]); // Fire an after event