Website - ReCaptcha
by T.V.T Marine Automation (aka TVTMA) https://viindoo.com/apps/app/16.0/to_website_recaptcha , Viindoo https://viindoo.com/apps/app/16.0/to_website_recaptcha
Odoo
$ 21.87
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) |
Lines of code | 36 |
Technical Name |
to_website_recaptcha |
License | OPL-1 |
Website | https://viindoo.com/apps/app/16.0/to_website_recaptcha |
Versions | 12.0 13.0 14.0 15.0 16.0 |
What It Does
This module serves as a technical base for implementing Google ReCaptcha in website forms. It provides the foundational structure needed for integrating ReCaptcha into your website.
Technical Features
Provides a simple mechanism to integrate Google ReCaptcha into website forms. Just add a div with class="o_website_recaptcha" to your form. A hidden input field with name="recaptcha_token_response" will be automatically added. The ReCaptcha token value can be accessed from the form data in your controller. From the ReCaptcha token data, you can call Odoo's verification function to validate the token.
Example:
Adding ReCaptcha to a form:
<form action="/submit_form" method="post"> <input type="text" name="name" required /> <div class="o_website_recaptcha"></div> <button type="submit">Submit</button> </form>
Validating token in controller:
if not request.env['ir.http']._verify_request_recaptcha_token('recaptcha_token'): return "ReCaptcha validation failed!"
Benefits
- Simplifies the process of building ReCaptcha validation for website forms.
Who Should Use This Module
- Developers need to integrate Google ReCaptcha into website forms.
Editions Supported
- Community Edition
- Enterprise Edition
Installation
- Navigate to Apps.
- Search with keyword to_website_recaptcha.
- Press Install.
Instruction
1. Concept
- Recaptcha is a useful tool to protect websites from spam and abuse by distinguishing human users from automated robots.
2. Usages
- Because this is the base module, it sets the stage for creating and using the recaptcha that Google provides. So, to use recaptcha, users need to install the module to_website_recaptcha_signup.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module