Closed ayush-goyal closed 3 years ago
This is awesome!
Added rate limiting to all endpoints, and created utility functions for different rate limiting options per endpont (in middleware.ts)
Might be worth adding recaptcha on some endpoints to reduce risk of brute force/spam even further.
Same as Ehsan, these are all excellent improvements to make! I will look at the code shortly - I agree about recaptcha and have a couple thoughts about password complexity requirements as well
@ehsanmasdar @evan10s I added in recaptcha for certain routes. See login.dev.hack.gt
Also, when I sign in at login.dev.hack.gt, I get taken to https://login.dev.hack.gt/favicon.ico instead of the profile page.
Also, when I sign in at login.dev.hack.gt, I get taken to https://login.dev.hack.gt/favicon.ico instead of the profile page.
Can you explain more? When I sign in I go to the profile page
As crazy as this sounds, it only seems to happen if I click on the icon part of the Next button or if I complete the recaptcha (when I wrote this comment, the change to the location of the captcha hadn't deployed yet), then click back to the password field and hit Enter (in Chrome on Windows). It still ends up logging me in though, and both of those seem to be consistent causes
I'm not sure what the problem is and I can't replicate it. Can you try a hard reload and clear your cache?
Yeah, it's still happening in an incognito window.