Skip to content

Conversation

@3rdit
Copy link
Contributor

@3rdit 3rdit commented Jan 14, 2026

This PR allows users to log in with either username or email (where the email takes precedence) and reminds the user of their username during password reset flow to help remember their credentials.

I've added registration cross-checks to prevent registering a username that matches an existing user's email, and prevent registering an email that matches an existing user's username. These have generic error messages to avoid information leaking.

This PR is a draft until @xusheng6 tests, as I can't easily test with the email system.

This PR closes #97

@3rdit 3rdit requested a review from xusheng6 January 14, 2026 00:37
@xusheng6
Copy link
Contributor

I prefer not to include the user name in the email. Some of them are really inappropriate and we want to avoid that in an outgoing email from us.

Now that we allow the user to login with email, if they want to know it, they can login and find out from the profile page

@3rdit
Copy link
Contributor Author

3rdit commented Jan 15, 2026

@xusheng6 Reverted the user name being contained in email in 82b2b51

@3rdit 3rdit marked this pull request as ready for review January 15, 2026 12:23
@xusheng6 xusheng6 merged commit dfaf843 into main Jan 17, 2026
@xusheng6 xusheng6 deleted the feature/login-with-email branch January 17, 2026 15:32
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.

Allow users to log in with their emails

3 participants