# Custom Database Change Password script won't pass username

**URL:** <https://community.auth0.com/t/custom-database-change-password-script-wont-pass-username/113902>\
**Category:** Get Help\
**Tags:** custom-database-connections, connections\
**Created:** [August 17, 2023, 7:48pm UTC](https://community.auth0.com/t/custom-database-change-password-script-wont-pass-username/113902 "2023-08-17T19:48:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpf\_auth0](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jpf\_auth0](https://community.auth0.com/u/jpf_auth0)\
**Post date:** [August 17, 2023, 7:48pm UTC](https://community.auth0.com/t/custom-database-change-password-script-wont-pass-username/113902/1 "2023-08-17T19:48:41Z")

</div>

I am using a custom database, with “Requires Username” enabled. In the custom Login script, I can receive either a username or an email as part of the call.

However, trying to work through the Change Password flow, it will not accept a username, and passes only an email. A validation blocker pops if the entry is not a valid email.

There are several closed posts here either giving misinformation on a solution, or saying that there is a feature/bug for this and dev team is aware. This is a blocker for our organization, since we have multiple users associated with same email (in different logical groups) and cannot uniquely identify them without username.

Can you please update on what the ETA is, or give a link to the existing feature/bug so we can view priority?

It’s honestly completely broken for custom databases if they can signup and login using username, but can only change password using email. The same identifier needs to be used throughout, and I would hope this issue gets escalated accordingly.

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [August 31, 2023, 9:57pm UTC](https://community.auth0.com/t/custom-database-change-password-script-wont-pass-username/113902/2 "2023-08-31T21:57:44Z")

</div>

Hi @jpf_auth0

Welcome to the Auth0 Community.

I just reviewed this in our system and this is still in backlog status (with no ETA just yet). I would suggest you provide some feedback here [https://auth0.com/feedback](https://auth0.com/feedback) about this citing your use case as this helps our product teams gauge demand for certain features.

Warm regards.

---

<div class="post-metadata">

**Author:** ![jpf\_auth0](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jpf\_auth0](https://community.auth0.com/u/jpf_auth0)\
**Post date:** [September 1, 2023, 12:32am UTC](https://community.auth0.com/t/custom-database-change-password-script-wont-pass-username/113902/3 "2023-09-01T00:32:04Z")

</div>

Thanks, this is the same response I’ve seen put on every other report of this same issue stretching back for months. Please don’t mark it as “solved” - the issue is not “solved”. There is no workaround.

Essentially, what appears to have happened is, for custom databases, a new feature was added: “Requires username”. Only someone missed that they needed to update _all_ the scripts that participate in that flow.

So bottom line, that feature is _unusable_ if part of the flow cannot be implemented (in this case, specifically, migrating users and resetting/forgot password flow). **Literally, unusable.**

I have reported feedback, and am in contact with our support contact at auth0 (whose response was the same: report feedback), so please, do your best to escalate.

Thanks!

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [February 25, 2025, 10:35am UTC](https://community.auth0.com/t/custom-database-change-password-script-wont-pass-username/113902/4 "2025-02-25T10:35:55Z")

</div>

Support for usernames in the change password script has been added as of July 2024: [Auth0 Changelog](https://auth0.com/changelog#6plwJQ1ijFgBuo5FeFAOGA)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 11, 2025, 10:36am UTC](https://community.auth0.com/t/custom-database-change-password-script-wont-pass-username/113902/5 "2025-03-11T10:36:46Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
