Open Closed

Password change enforcement after first time login #933


User avatar
0
Repunjay created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: N/A
  • Steps to reproduce the issue: N/A

Is there any setting in ABP.IO framework which enforces user to change the password after first login?. If yes, please provide information on the same. If no, can you share some insight on how to set it up in ABP?

Thanks & regards, Repunjay


2 Answer(s)
  • User Avatar
    0
    Moyaoxiang created

    Hi Repunjay, The current framework does not have this feature, you have to implement it yourself. You can judge whether the user is logging in for the first time based on the information in the Security Log, or extend User to add a bool attribute IsFirstLogin. If it is the first login, you can inject the IdentityUserManager and use the ResetPasswordAsync() method to reset the password.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35