Base solution for your next web application
Open Closed

User password create #11435


User avatar
0
kansoftware created

Hi, I am creating users directly from database using store procedure. All work is done but i am not able to set password in encrypted with my dynamic string. can use help us what algorithm is use in ASP.Net Zero for user password.

Thanks, Mohit

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You need to inject IPasswordHasher<User> and then use it as shown below;

    _passwordHasher.HashPassword(user, password)
    
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)