website icon indicating copy to clipboard operation
website copied to clipboard

Add captcha to Forgot Password requests

Open DanilochTop opened this issue 8 months ago • 1 comments

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! 😄

DanilochTop avatar May 31 '24 07:05 DanilochTop