Password Reset Before First Login with Automatic Migration Enabled
This article clarifies whether a user can perform a password reset using the login widget before their first login when automatic migration is enabled.
- Auth0
- Automatic Migration
Yes, a user who has not yet migrated can change their password using the link in the login widget. This functionality requires implementing the Change Password script in the custom database settings. The Auth0 reset flow calls this script, which updates the password in the legacy database. At this time, Auth0 creates a temporary identity profile for the user with the new password, marking the start of the user's migration process. The user is not fully migrated until they log in with the new password.
The process is as follows:
-
The user requests a password change via the link in the widget.
-
A change password email is sent to the user.
-
When the user confirms the password change, the update is made to the legacy database.
-
After a successful login with the new password, an Auth0 user profile is created. This profile contains all data returned from the legacy database in the Get User script.
-
All subsequent logins for this user are performed directly in Auth0.