Skip to content

This PR fixing a UI issue in the log in page for English language#8602

Merged
kevinortiz43 merged 7 commits into
developfrom
Frontend-Bug-PasswordWarningError
May 15, 2026
Merged

This PR fixing a UI issue in the log in page for English language#8602
kevinortiz43 merged 7 commits into
developfrom
Frontend-Bug-PasswordWarningError

Conversation

@kevinortiz43

@kevinortiz43 kevinortiz43 commented May 15, 2026

Copy link
Copy Markdown
Contributor

Scenario:

User attempts to log in with the correct username and the wrong password . The warning text would say "Wrong password"

Issue: Someone can figure out if they have the right email since the system will tell them that, then they can figure out the password from there.

The text

"Wrong password." now updated to say "Wrong Username/Email or Password." I updated the python tests as well

Testing
I tested locally

Image attached
image

Web frontend checklist

  • There are no console warnings when running the app
  • Added tests where relevant
  • Clicked around my changes running locally and it works
  • Checked Desktop, Mobile and Tablet screen sizes

For maintainers

  • Maintainers can push commits to my branch
  • Maintainers can merge this PR for me

Describe briefly what this PR is doing and why.

Testing

Explain how you tested this PR and give clear steps so the reviewer can replicate.

Scenario:

User attempts to log in with the correct username and the wrong password . The warning text would say "Wrong password"

The text

"Wrong password." now updated to say "Wrong Username/Email or Password." I updated the python tests as well

Testing
Images verification will be included.
I checked different screen sizes, changes seem to be well.

Web frontend checklist

 There are no console warnings when running the app
 Added tests where relevant
 Clicked around my changes running locally and it works
 Checked Desktop, Mobile and Tablet screen sizes
For maintainers
 Maintainers can push commits to my branch
 Maintainers can merge this PR for me
@vercel

vercel Bot commented May 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
couchers Ready Ready Preview May 15, 2026 6:07pm

Request Review

@tristanlabelle tristanlabelle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've covered all the right parts of the code, but also a few that shouldn't have been impacted. See comments.

Comment thread app/backend/src/tests/test_account.py Outdated
Comment thread app/backend/src/couchers/servicers/account.py
… scenario. The change email and password scenarios reverted back to original.
1. Added a string in en.json for wrong username/email or password only for invalid password but correct username/email scenario.

2 Modified the test_auth py test to test the correct changes.

3. Ran all the py tests, everything works. Does not affect the other invalid password scenarios

@tristanlabelle tristanlabelle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! test_account changes are not necessary, but inoffensive.

@kevinortiz43
kevinortiz43 merged commit 83378b0 into develop May 15, 2026
6 checks passed
@kevinortiz43
kevinortiz43 deleted the Frontend-Bug-PasswordWarningError branch May 15, 2026 23:20
@github-actions github-actions Bot added the release notes: pending Add to stuff that should be included in release notes label May 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📝 Release Notes

This PR should be included in the release notes.

Suggested release note:

Improved login security by showing a generic error message for incorrect usernames, emails, or passwords
🤖 Bot Debug Information

Model: couchers.openai.gpt-5.4
Decision: include
Reasoning: This changes the login error message to avoid revealing whether a username or email exists, which is a meaningful safety and security improvement users may notice during login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: pending Add to stuff that should be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants