Open Closed

The password change form is not shown when the user name is changed #9946


User avatar
0
dhill created

Steps:

  1. Log in to the tenant
  2. Add a new user
  3. Change the added user's username
  4. Open another browser
  5. Log in using the provided user's credentials
  6. Users are not seeing the user's 1st login - Password Change form

2 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    To ensure that the "Change Password on First Login" form is shown after a username change, you need to verify that the user's ShouldChangePasswordOnNextLogin property is set to true after creating or updating the user. Changing the username alone does not automatically trigger the password change prompt on the next login.

    Solution:

    1. When creating a new user, set ShouldChangePasswordOnNextLogin = true.
    2. If you change the username and want the user to be prompted to change their password on the next login, you must also set ShouldChangePasswordOnNextLogin = true for that user.

    Example (C#):

    user.ShouldChangePasswordOnNextLogin = true;
    await _userManager.UpdateAsync(user);
    

    Summary:
    Changing the username does not trigger the password change form. You must explicitly set ShouldChangePasswordOnNextLogin to true for the user to see the password change prompt on their next login.

    Sources:

    • https://abp.io/support/questions/162

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    dhill created

    This is in the abp identity management module.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 23, 2025, 10:47