Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How to implement change password module in MVC?
Posted
Comments
F-ES Sitecore 15-Aug-15 15:45pm    
MVC is a presentation framework, it has no in-built "password" ability, so the answer depends on what you're using to do the authentication. If you google it and "change password" I'm sure you'll find examples.
Rijen Juni 16-Aug-15 1:42am    
Can I using Session["UsernameLogin'] in other controler?

If your not using any external authentication it will be easy to insert change password module.
Just find user details table in your database,once user gives his username and new password update password column for that specific user using entity or linqTosql or using your interested technology
 
Share this answer
 
See the following link:
http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-web-app-with-email-confirmation-and-password-reset[^]

http://blogs.msdn.com/b/webdev/archive/2014/01/06/implementing-custom-password-policy-using-asp-net-identity.aspx[^]

There is no hard and fast rule that you need to use Identity Framework.
You can build your own custom password reset scenarios.

reference:
How to change password in Mvc 5[^]

I hope this help you.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900