Skip to content

Commit aab3032

Browse files
committed
Exclude front-end login actions
#34
1 parent e713035 commit aab3032

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Snaptcha
22

3+
## 5.2.0 - Unreleased
4+
5+
- Added front-end login actions to the list of excluded actions ([#34](https://github.com/putyourlightson/craft-snaptcha/issues/34)).
6+
37
## 5.1.2 - 2025-07-01
48

59
- Improved the check for nested uploaded file fields.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "putyourlightson/craft-snaptcha",
33
"description": "Automatically validates forms and prevents spam bots from submitting to your site.",
4-
"version": "5.1.2",
4+
"version": "5.2.0",
55
"type": "craft-plugin",
66
"homepage": "https://putyourlightson.com/plugins/snaptcha",
77
"license": "proprietary",

src/services/SnaptchaService.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@ class SnaptchaService extends Component
3939
* @const string[]
4040
*/
4141
public const EXCLUDE_CONTROLLER_ACTIONS = [
42+
// Craft CMS actions
43+
'users/login',
44+
'graphql/api',
45+
'templates/render',
46+
'auth/verify-totp',
47+
// Plugins actions
4248
'ad-wizard/tracking/click',
4349
'commerce/webhooks/process-webhook',
4450
'complete-cookie-consent/consent/submit',
4551
'cookie-consent/consent/update',
4652
'enupal-stripe/checkout/create-session',
47-
'graphql/api',
48-
'templates/render',
4953
];
5054

5155
/**

0 commit comments

Comments
 (0)