Comments (4)
I'm not seeing this bug. With the default comments.yaml configuration, the captcha is a required field and so is validated before processing the form.
Can you paste your comments.yaml (strip the recaptcha secret/site keys) and provide an explanation of what happens?
from grav-plugin-comments.
Screenshot
(This is the message form show after submitting the comment and even it throws the validation message, comment is posted.)
comment.yaml
enabled: true
enable_on_routes:
- /blog
disable_on_routes:
- /blog/blog-post-to-ignore
- /ignore-this-route
form:
name: comments
fields:
-
name: name
label: Name
placeholder: 'Enter your name'
autofocus: 'on'
autocomplete: 'on'
type: text
validate:
required: true
-
name: email
label: Email
placeholder: 'Enter your email address'
type: email
validate:
required: true
-
name: text
label: Message
placeholder: 'Enter your message'
type: textarea
validate:
required: true
-
name: date
type: hidden
process:
fillWithCurrentDateTime: true
-
name: title
type: hidden
evaluateDefault: grav.page.header.title
-
name: lang
type: hidden
evaluateDefault: grav.language.getLanguage
-
name: path
type: hidden
evaluateDefault: grav.uri.path
-
name: g-recaptcha-response
label: Captcha
type: captcha
recatpcha_site_key: **********************************
recaptcha_not_validated: 'Captcha not valid!'
validate:
required: true
process:
ignore: true
buttons:
-
type: submit
value: Submit
process:
-
email:
subject: '[New Comment] from {{ form.value.name|e }}'
body: '{% include ''forms/data.html.twig'' %}'
-
captcha:
recatpcha_secret: ********************************
-
addComment: null
-
message: 'Thank you for writing your comment!'
from grav-plugin-comments.
Cannot recreate this too. Are you using the latest version of Grav, the Form and Comments Plugins?
If yes, zip your user/ folder and send it to me via Gitter PM, so I can try directly your setup.
from grav-plugin-comments.
yes all latest ver.
from grav-plugin-comments.
Related Issues (20)
- e_notice - undefined index: email HOT 1
- getting comments set up, where is "forms/fields"?
- Some comments are not saved HOT 13
- Output of 'form.message' requires filter |raw HOT 1
- Error in posting comment and display of comments
- 'Escaping'
- How do automatically approve comments?
- Is this plugin supported?
- Is this plugin dead? HOT 2
- does the plugin support reCaptcha v3?
- Comments full of spam despite reCAPTCHA HOT 1
- Default design - Difficult to read HOT 1
- Plugin **extremely unsafe** - allows anyone to create a file anywhere in the filesystem HOT 6
- File upload form field is not working
- please help me regarding this I am facing issue when submit any form on my site HOT 2
- Avoid concurrent file access by using file locking?
- Active comments per page in the frontmatter HOT 1
- Number of comments limited, moderation field implemented, still not working properly on modular (child) pages HOT 2
- Removal from specific pages
- Comments are not saved HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-plugin-comments.