Open Closed

Create user without password #4915


User avatar
0
mmarjeh created

Hi All,

I had an old asp.net MVC application and now try to move it to ABP Framework, in our application we create a user account without password once admin add new employee, then send reset password link via email to recent created account.

Could you please advise how to implement the same scenario using ABP Framework?

  • ABP Framework version: v7.0.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Yes, you can. but I don't know what's blocking you, can you explain it in detail? thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mmarjeh created

    Hi,

    Yes, you can. but I don't know what's blocking you, can you explain it in detail? thanks.

    Hi,

    How to get reset password URL form the client app? should we use settings file or ABP has predefined feature for that?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Yes, we have an HTTP API you can use to send the reset password code email.

    You can also send it manually:

    
    // inject IdentityUserManager and IAccountEmailer service.
    protected IdentityUserManager UserManager { get; }
    protected IAccountEmailer AccountEmailer { get; }
    
    //Find a user
    var resetToken = await UserManager.GeneratePasswordResetTokenAsync(user);
    await AccountEmailer.SendPasswordResetLinkAsync(user, resetToken, input.AppName, input.ReturnUrl, input.ReturnUrlHash);
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mmarjeh created

    Hi,

    Yes, we have an HTTP API you can use to send the reset password code email.

    You can also send it manually:

     
    // inject IdentityUserManager and IAccountEmailer service. 
    protected IdentityUserManager UserManager { get; } 
    protected IAccountEmailer AccountEmailer { get; } 
     
    //Find a user 
    var resetToken = await UserManager.GeneratePasswordResetTokenAsync(user); 
    await AccountEmailer.SendPasswordResetLinkAsync(user, resetToken, input.AppName, input.ReturnUrl, input.ReturnUrlHash); 
    

    Thanks for your kind support !

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on October 06, 2026, 12:23
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.