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


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)