princekhunt / privateping

PrivatePing is a secure messaging application built on Python's Django framework, providing end-to-end encryption for messages exchanged between users.
https://privateping.bytespot.tech
MIT License
125 stars 30 forks source link

hCaptcha Sitekey Configuration Issue: Incorrect Sitekey Error #51

Closed snipher-marube closed 4 days ago

snipher-marube commented 5 days ago

Description of the the bug We are encountering an issue with the hCaptcha integration on the development site when trying to login anonymously where the CAPTCHA validation fails due to an incorrect sitekey configuration. The error message displayed is "The sitekey for this hCaptcha is incorrect. Please contact the site admin if you see this." I have added my own sitekey and secret key to my .env file which i obtained form hcaptcha website here after signing up to obtain the keys.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to the development site.
  2. Click on 'Anonymously Direct Login'
  3. See error

Expected behavior The hCaptcha should display correctly and allow the user to complete the CAPTCHA challenge, confirming they are human..

Screenshots Screenshot from 2024-06-24 05-28-42

Desktop

Additional context

Impact

This issue prevents users from successfully passing the browser check, potentially hindering access to the site and causing a poor user experience.

Thank you for addressing this issue promptly.

princekhunt commented 4 days ago

That is because, settings is not able to find site key and secret in the .env file (in dev mode). we need to add test keys in .env file to run dev successfully.

For that instructions can be added in readme

princekhunt commented 4 days ago

I have made new push to main, where I updated readme, could you please update as defined and check if the issue still persists.

snipher-marube commented 4 days ago

Yes now it is resolved thank you