Skip to content

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

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

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

Conversation

@Musbi8788
Copy link
Copy Markdown

@Musbi8788 Musbi8788 commented May 29, 2026

Pull Request

Simplify error message

Description

This makes the reponse shoter and remove unnessary message like ".... username don't exit in the system" for better security with telling fake users that the name don't exist in the system instead we can just tell them the user does not exist.

Updated the response message from:
"The user with this username does not exist in the system."
to:
"User does not exist"

AI Disclaimer

No AI used

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.

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