-
Notifications
You must be signed in to change notification settings - Fork 12.6k
fix: Use generic "Incorrect username or password" error for login failures #37764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
fix: Use generic "Incorrect username or password" error for login failures #37764
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughA single file update modifies the login error message displayed when authentication fails from "User not found" to "Incorrect username or password," returning HTTP 401 status. No control flow or structural changes are introduced. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧬 Code graph analysis (1)apps/meteor/app/lib/server/lib/loginErrorMessageOverride.ts (1)
🔇 Additional comments (1)
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 |
fix: Use generic "Incorrect username or password" error for login failures
Proposed changes
This PR updates the login error message override in
apps/meteor/server/lib/loginErrorMessageOverride.ts(or equivalent file) to display a single generic message "Incorrect username or password" for all unauthorized login attempts.Previously, any login failure (non-existent user or wrong password) was forcibly overridden to "User not found". This misled users when their account existed but the password was simply incorrect.
Changes:
Issue(s)
Closes #37760
Steps to test or reproduce
yarn dsvormeteor).Further comments
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.