如何在Mvc 5中更改密码 [英] How to change password in Mvc 5

查看:113
本文介绍了如何在Mvc 5中更改密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

有谁能告诉我如何更改MVC 5中的密码...

提前感谢

Hi All!
Can anyone please tell me how to change the password in MVC 5 ...
thanks in advance

推荐答案

如果你正在使用身份框架,密码重置并不难建立。

一些例子 -

创建一个安全的ASP.NET MVC 5 Web应用程序登录,电子邮件确认和密码重置 [ ^ ]

使用ASP.NET身份实现自定义密码策略 [ ^ ]



您没有必要使用Identity Framework的硬性规则。 />
您可以构建自己的自定义密码重置方案。
If you are using identity framework, password reset is not difficult to build.
Some examples -
Create a secure ASP.NET MVC 5 web app with log in, email confirmation and password reset [^]
Implementing custom password policy using ASP.NET Identity[^]

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


ASP.NET MVC 5使用Identity框架进行授权和身份验证进程。您需要在Identity框架中查找方法,而不是在MVC 5中查找;这只是MVC框架的版本。



本文 [ ^ ],解释了可用于更改密码或执行其他操作的代码用户帐户的东西。您还可以找到其他问题的答案。只需浏览菜单和链接即可。它指导您重置密码,也可以更改密码。有关ASP.NET的Identity框架的 UserManager.ChangePassword 功能的其他详细信息,请阅读MSDN资源 [ ^ ]。
ASP.NET MVC 5 uses Identity framework for authorization and authentication processes. You need to look for a method in Identity framework, not in MVC 5; which is just the version of MVC framework.

This article[^] on ASP.NET's official documentation, explains the code that you can use to change password, or perform other stuff with user's account. You will find answers to other questions there also. Just navigate through the menu and links. It guides you to reset password, also to change the password. For other detailed information on UserManager.ChangePassword function of Identity framework of ASP.NET, please read MSDN resource[^].


这篇关于如何在Mvc 5中更改密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆