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

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