如果用户的Id和密码存储在数据库中,如何允许用户在mvc Web应用程序中登录 [英] how to allow a user to log on in a mvc web application if his Id and Password are stored in the database

查看:65
本文介绍了如果用户的Id和密码存储在数据库中,如何允许用户在mvc Web应用程序中登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net MVC4 Web应用程序中,我想使用我的Web应用程序的用户可以使用其存储在项目数据库中的详细信息登录的任何功能,这是他们的任何特定机制吗?

In my asp.net MVC4 Web Application i want to use any functionality through which the users of my web application can logon with their details that are stored in the project database, is their any specific mechanism for this?

推荐答案

您可以使用身份



http://www.asp.net/identity [ ^ ]



当您在Visual Studio中启动一个新的MVC项目时,有许多身份验证选项可供选择,因此您可以使用它创建一个项目已经实施,所以你可以看到它是如何工作的。
You can use Identity

http://www.asp.net/identity[^]

When you start a new MVC project in Visual Studio there are a number of authentication options to choose from, so you can have it create a project with this already implemented so you can see how it all works.


这篇关于如果用户的Id和密码存储在数据库中,如何允许用户在mvc Web应用程序中登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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