Repository navigation
Add resend verification email option to login and registration - #132
Open
gopikrishna-20 wants to merge 1 commit into
Open
gopikrishna-20 wants to merge 1 commit into
gopikrishna-20 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #131
Problem
Users who haven't verified their email hit a dead end: login returns "Please verify your email", but the page has no way to request a new link, although
/api/resend-verificationalready exists.Changes
public/login.html: when login fails because the email isn't verified, an inline box lets the user enter their email and request a new link. The post-registration "Check your email" screen also gets a "Didn't get the email? Resend" link. The button is locked for 5 minutes after a request, matching the server's per-account cooldown, so the UI never claims to send something the server will ignore.src/worker.py: the unverified-login 403 now includes"code": "email_not_verified"so the page doesn't match on message text, and/api/resend-verificationgets the same per-IP rate limit as login and register.Behavior
The resend endpoint still returns the same generic message whether or not an account exists, so it doesn't reveal which emails are registered. The login 403 is only returned after the password is verified.
Testing
Registered an unverified account, confirmed the resend link on the success screen, and confirmed the resend box appears on an unverified login but not on a wrong password. Checked the cooldown and the rate limit (429 after 5 requests a minute).
Screen.Recording.2026-10-18.184835.mp4