Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Updated 8-Oct-15 4:58am
v2
Comments
Thanks7872 8-Oct-15 7:38am    
If people would have found code for each and everything,there would not be millions of developers. Why you expect that whatever functionality you think is readily available on Google? Google helps to guide in right direction. In most of the cases,you have to write something your self.

Learn and implement yourself. Come back when you have specific questions.
lailailaihou 8-Oct-15 10:59am    
Hi,Rohan thanks for the comment i will try implement myself then come back and update the solution.

1 solution

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.
 
Share this answer
 
Comments
Thanks7872 8-Oct-15 7:40am    
Let them try first. He must put some effort. If we will continue providing answers to such a vague questions,they won't learn anything. This flow will never end. My personal thought.
F-ES Sitecore 8-Oct-15 8:29am    
When someone is new to a technology the issue is sometimes that they just don't know what the name of the thing they need is, which is hard to know unless you have experience. By telling him what the technology he needs is called he can then have something to search and research on his own.
Thanks7872 8-Oct-15 9:05am    
Each and everything he asked for can't be described by a single word. All the functionality is like learn and implement.
F-ES Sitecore 8-Oct-15 9:07am    
That's why I just gave a link to where he can read up on the tech himself :)
lailailaihou 8-Oct-15 10:53am    
thank for the link, i will study it first, and thank for the comment, i will learn to implement those function.

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