ADD ReCaptcha feature for anonymous User#682
Merged
souravbadami merged 2 commits intoOWASP-BLT:masterfrom Mar 4, 2021
Merged
Conversation
souravbadami
approved these changes
Mar 3, 2021
souravbadami
suggested changes
Mar 3, 2021
bugheist/settings.py
Outdated
| STRIPE_TEST_SECRET_KEY = os.environ.get("STRIPE_TEST_SECRET_KEY", "sk_test_51HFiXMFf0OkkOVnDiAnuYiq6JInx3VSXw2HzIV6ihGWzaO8un5djIi990OCLTAv5PRnY7Yl8v8yuxf6yU47gvKYj00hkKaKaQ0") | ||
| STRIPE_LIVE_MODE = False # Change to True in production | ||
|
|
||
| GOOGLE_RECAPTCHA_SECRET_KEY = env('GOOGLE_RECAPTCHA_SECRET_KEY', default="6LeV4GwaAAAAAC3AluQ3i3GgAv7XHA2EhK9sAkgi") |
Collaborator
There was a problem hiding this comment.
Are these dummy values? If not, could you replace it with something like dummy?
Collaborator
|
@ankit2001 - Left a comment, otherwise LGTM! |
Contributor
Author
|
@souravbadami I have done the required changes, please review it, also please register on the link i provided in the first comment and add site and secret key to settings.py to make it work. |
souravbadami
approved these changes
Mar 4, 2021
Collaborator
|
LGTM! Thanks @ankit2001. |
DonnieBLT
pushed a commit
that referenced
this pull request
Aug 12, 2023
ADD ReCaptcha feature for anonymous User
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to add captcha feature and fixing the issue #681 .
You can make your own secret and site key for captcha by registering on https://www.google.com/recaptcha/admin/create
and add them in .env file or replace with the keys described in settings.py, also i have added default key for testing.
Below are the some results of the added feature.
If Captcha is not configured.
The output of request
If Captcha is Configured.
The output of request
Please review it @fredfalcon , @souravbadami , @srahulbadami and suggest me changes if needed.
Thanks.