MVC认证流程查询
我正在编写一个小应用程序,允许用户在线更新他们的个人信息。
我让他们在流程开始时进行身份验证,但在我将任何更改提交回数据库之前,我还想再次询问他们的密码。
这就是亚马逊在允许您查看购物篮和结账之前的工作方式。
有没有明智的方法来做到这一点?
I am writing a small app to allow users to update their personal information online.
I get them to Authenticate at the start of the process, but would like also to ask them again for their password just before I submit any changes back to the database.
This is the way Amazon works before allowing you to see your basket and checkout.
Is there a sensible way of doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于您作为会员提供者使用的内容...
假设您正在使用 System.Web.Security.MembershipProvider 那么您需要使用
ValidateUser 方法...
我还假设 SSL 已到位...这将是一个很好的实践。
It kind of depends what your using as a membership provider...
Lets assume you are using System.Web.Security.MembershipProvider then you need to use the
ValidateUser method....
I'm also assuming SSL is in place....which would be good practise.