You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
choose_password template shows "undefined" for username — username param missing from reset redirect URL #10245
The choose_password password reset page displays "New Password for undefined" because the username query parameter is not included in the redirect URL generated by PublicAPIRouter.js, despite the template expecting it.
Steps to reproduce
Call requestPasswordReset for any user
Click the reset link sent via email
Observe the label on the reset page reads "New Password for undefined"
Actual Outcome
The page renders: "New Password for undefined"
Expected Outcome
The page should render: "New Password for " (or the app name)
The comment at the top of the choose_password template explicitly states:
"The query params 'username' and 'app' hold the friendly names for your current user and your app."
However, requestResetPassword() in PublicAPIRouter.js only includes token, id, and app in the redirect username is absent:
ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
@mtrezza -
Hi, I’d like to take a look at this issue.
From the description, it seems the choose_password template expects a username query param, but the reset redirect URL generated in PublicAPIRouter.js does not include it, which results in the UI rendering "New Password for undefined".
I’ll reproduce the flow locally and verify whether the correct fix is to pass the username through the reset redirect params (or gracefully handle its absence in the template) before opening a PR.
Activity
parse-github-assistant commentedon Mar 19, 2026
🚀 Thanks for opening this issue!
ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
mtrezza commentedon Mar 19, 2026
Yes,
usernamehas been removed. Template requires a change.Rishabh-1098git commentedon May 20, 2026
@mtrezza -
Hi, I’d like to take a look at this issue.
From the description, it seems the
choose_passwordtemplate expects ausernamequery param, but the reset redirect URL generated inPublicAPIRouter.jsdoes not include it, which results in the UI rendering"New Password for undefined".I’ll reproduce the flow locally and verify whether the correct fix is to pass the username through the reset redirect params (or gracefully handle its absence in the template) before opening a PR.