Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add captcha to Forgot Password requests #306

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

DanilochTop
Copy link

Motivation: #299

This PR aims to add captcha to forgot password requests on the front end, and do some changes on the back end to support this feature.

Detailed changes

  • Added hcaptcha box to the forgot password page.
  • Changed the forgot password page to work with forms instead of using JS to handle inputs, so we can pass the hCaptchaResponse automatically.
  • Added success and error message boxes instead of alert.
  • Added cookie support to form input, so the user don't need to input the credentials again.
  • Created a forgotPassword function in util module to handle requests/responses in a better way.

I also created a PR in the account server repository to support captcha, because it's verified there.

Any bugs, feedback or suggestions just message me! 😄

src/routes/account.js Outdated Show resolved Hide resolved
@DanilochTop
Copy link
Author

Everything should be fine and ready to merge now.

@jonbarrow
Copy link
Member

LGTM

@jonbarrow jonbarrow merged commit 3c7b1f8 into PretendoNetwork:dev Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants