Open K02D opened 5 months ago
First you need to visit ReCaptcha Login and then go to admin console there are Add Option you need to fill all the details then you get public and private key!!
Once you get the public and private key replace with existing keys in code :
public key : login.html class="g-recaptcha" data-sitekey="6LfHPwojAAAAAAmIefBYBh_y9qTAmKrzIXWF_6FZ"
private key : views.py captcha_token = request.POST.get('g-recaptcha-response') captcha_url = "https://www.google.com/recaptcha/api/siteverify" captcha_key = "6LfHPwojAAAAAAtIjbi-7N4fNf7Wp0LUiYlCDw" # Consider using your secret key data = { 'secret': captcha_key, 'response': captcha_token }
if we disable the Recaptcha and give your given email id and password shows invalid details .what can I do?
if we disable the Recaptcha and give your given email id and password shows invalid details .what can I do?
If disabling the reCAPTCHA and providing the given email ID and password shows "invalid details," you can create another superuser to access the admin panel. If you are already able to run the application locally, you just need to run one command to create a new superuser:
python manage.py createsuperuser
thank you
On Sun, 21 Jul 2024 at 19:35, Ansari Majid Ali @.***> wrote:
if we disable the Recaptcha and give your given email id and password shows invalid details .what can I do?
If disabling the reCAPTCHA and providing the given email ID and password shows "invalid details," you can create another superuser to access the admin panel. If you are already able to run the application locally, you just need to run one command to create a new superuser:
python manage.py createsuperuser
— Reply to this email directly, view it on GitHub https://github.com/Ansarimajid/College-ERP/issues/12#issuecomment-2241622992, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ6I6CU6HIDCOX3ITA7CIVLZNO5Y7AVCNFSM6AAAAABGRWP3AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGYZDEOJZGI . You are receiving this because you commented.Message ID: @.***>
This is what I get when I run the project locally:
My ALLOWED_HOSTS is [] in settings.py. How do I fix the reCAPTCHA error? I think you might have to add localhost to your list of supported domains in your reCAPTCHA console (reference). Thank you!