Steps:
- Log in to the tenant
- Add a new user
- Change the added user's username
- Open another browser
- Log in using the provided user's credentials
- Users are not seeing the user's 1st login - Password Change form
2 Answer(s)
-
0
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 totrue
after creating or updating the user. Changing the username alone does not automatically trigger the password change prompt on the next login.Solution:
- When creating a new user, set
ShouldChangePasswordOnNextLogin = true
. - 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 setShouldChangePasswordOnNextLogin
totrue
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.
- When creating a new user, set
-
0
This is in the abp identity management module.