Custom DB Change_Password Script Handling of Usernames

Overview

There is a custom database with import mode disabled, and it is noticed that users are able to change their password if they enter their email, but there seems to not be a way to have them use their Username in the script.

According to Change Password Script Templates Documentation, the function is always passing an email address and never a "username".

changePassword(email, newPassword, callback): function

This article clarifies whether it is possible to get the "username" in this script if it is not passed to the changePassword function.

Applies To

  • Custom Database (DB)
  • Change Password Script

Solution

This is now supported as of the release of improvements for Flexible identifiers:
https://auth0.com/changelog#6plwJQ1ijFgBuo5FeFAOGA

Recommended content

No recommended content found...