Skip to content

Commit

Permalink
3.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Aug 27, 2021
1 parent da296bb commit 62bceba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.9 - 2021-08-27
### Changed
- The controller action is now logged when a form submission is rejected for easier debugging ([#21](https://github.com/putyourlightson/craft-snaptcha/issues/21)).

## 3.0.8 - 2021-08-25
### Changed
- Excluded the `templates/render` controller action from being validated ([#20](https://github.com/putyourlightson/craft-snaptcha/issues/20)).
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "putyourlightson/craft-snaptcha",
"description": "Automatically validates forms and prevents spam bots from submitting to your site.",
"version": "3.0.8",
"version": "3.0.9",
"type": "craft-plugin",
"homepage": "https://putyourlightson.com/plugins/snaptcha",
"license": "proprietary",
Expand Down
4 changes: 2 additions & 2 deletions src/services/SnaptchaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ private function _reject(string $message, array $params = [], Action $action = n
{
if (Snaptcha::$plugin->settings->logRejected) {
$url = Craft::$app->getRequest()->getAbsoluteUrl();
$action = $action ? $action->getUniqueId() : 'NO_ACTION';
$message = Craft::t('snaptcha', $message, $params).' ['.$url.'] ['.$action.']';
$message = Craft::t('snaptcha', $message, $params).' ['.$url.']';
$message .= $action ? ' ['.$action->getUniqueId().']' : '';
LogToFile::log($message, 'snaptcha');
}
}
Expand Down

0 comments on commit 62bceba

Please sign in to comment.