Skip to content

📝 Simplify error message for non-existent user in password recovery#2310

Open
Musbi8788 wants to merge 1 commit into
fastapi:masterfrom
Musbi8788:master
Open

📝 Simplify error message for non-existent user in password recovery#2310
Musbi8788 wants to merge 1 commit into
fastapi:masterfrom
Musbi8788:master

Conversation

@Musbi8788
Copy link
Copy Markdown

@Musbi8788 Musbi8788 commented May 26, 2026

Pull Request

Simplify error message

Description

This PR improves the password recovery error message wording in login.py.

Updated the response message from:

"The user with this username does not exist in the system."

to:

"User does not exist"

This makes the response shorter, cleaner, and more user-friendly.

AI Disclaimer

Model used: GPT-5.5 via ChatGPT

Prompt summary:
Asked for help improving the wording of an authentication-related error message and creating a cleaner API response message.

Checklist

  • This PR is an obvious typo fix, or it links to a GitHub Discussion for the proposed code change.
  • I added tests for the change.
  • The new or updated tests fail on the main branch and pass on this PR.
  • Coverage stays at 100%.
  • The documentation explains the change if needed.

@Musbi8788 Musbi8788 marked this pull request as draft May 26, 2026 00:55
@Musbi8788 Musbi8788 marked this pull request as ready for review May 26, 2026 00:55
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.

2 participants