MVC 5登录问题。 [英] MVC 5 Login questions.

查看:75
本文介绍了MVC 5登录问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是ASP.net中MVC5的新手(使用C#)。



i在visual studio 2013中创建一个新的mvc项目,它已经包括用户注册/登录功能。



i需要在mvc项目中添加以下功能:

1.用户失败后锁定用户帐户从相同的IP /端口位置登录五次。



i已经整天尝试google,但没找到可以使用的代码。

可以有人推荐一些我可以参考的解决方案或链接吗?



非常感谢。

解决方案

< blockquote>使用asp.net身份



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



或asp.net会员但已被取代。



请注意,列表中的2点不可用,网络是无国籍的并且服务器不知道谁登录并从哪里开始。


Hi guys, i'm new to MVC5 in ASP.net(using C#).

i create a new mvc project in visual studio 2013, and it already included user register / login functions.

i need to add in following features into the mvc project:
1. Lock user account after user failed to login five times from the same IP/port location.

i already try google whole day, but didn't found code which can use.
can anyone suggest some solution or link that i can refer ?

Thank you very much.

解决方案

Use asp.net Identity

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

Or asp.net Membership but that's been superseded.

Note that point "2" on your list won't be possible though, the web is stateless and the server has no idea who is "logged on" and from where.


这篇关于MVC 5登录问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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