Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

reset-password

How to reset password with UserManager of ASP.NET MVC 5 [duplicate]

May 19, 2023 by Tarik

It is here ASP.NET Identity reset password UserManager<IdentityUser> userManager = new UserManager<IdentityUser>(new UserStore<IdentityUser>()); userManager.RemovePassword(userId); userManager.AddPassword(userId, newPassword);

Categories c# Tags asp.net-mvc-5, c++, passwords, reset-password, usermanager Leave a comment

ASP.NET Identity change password

January 16, 2023 by Tarik

EDIT: I know the OP requested an answer which performs the task in one transaction but I think the code is useful to people. All the answers use the PasswordHasher directly which isn’t a good idea as you will lose some baked in functionality (validation etc). An alternative (and I would assume the recommended approach) … Read more

Categories c# Tags asp.net-identity-2, asp.net-mvc-5, c++, reset-password Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa