Skip to content

fix(coderd): improve password reuse error message in OTP reset flow#5

Draft
karan-gupta-glean wants to merge 1 commit intomainfrom
fix/improve-password-reset-error-message
Draft

fix(coderd): improve password reuse error message in OTP reset flow#5
karan-gupta-glean wants to merge 1 commit intomainfrom
fix/improve-password-reset-error-message

Conversation

@karan-gupta-glean
Copy link

Previously, when a user attempted to reset their password to the same
value via the OTP flow, the error message was "New password cannot match
old password." This phrasing is slightly ambiguous — it could be read as
"new password is not able to match" rather than "new password must not
match."

Updated the message to "New password must be different from your current
password." which is clearer and more actionable.

Also added a dedicated CannotReuseOldPassword unit test that was
previously missing for this specific code path.


🤖 Generated by Glean Code Writer
📝 Chat link - https://app.glean.com/chat/a0bba6beb39043498ad0e2061fea6d71

Update the error returned when a user attempts to reset their password
to the same value. The new message is clearer and more actionable.
Add a dedicated unit test for this password-reuse scenario.

Generated by Glean Code Writer
@karan-gupta-glean karan-gupta-glean added the glean-code-writer Modified by Glean Code Writer label Mar 9, 2026 — with glean-github-app-oauth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

glean-code-writer Modified by Glean Code Writer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants