Solved

ASP.Net MVC 4 C# -- LockOut after failed attempts

Posted on 2013-06-04
1
1,788 Views
Last Modified: 2013-07-02
How can I update my webpages_Membership database table/etc so below #5 displays Account is locked error instead of allowing user to login ?
-----------------------------------------------------------------------------------------------------
1.      add below to \Controllers\AccountController.cs
            if(WebSecurity.IsAccountLockedOut(model.UserName,6,10000))
            {
                    ModelState.AddModelError("", "Account is locked.");
                    //return RedirectToAction("LockedAccount");
                    return View(model);
            }
2.      run APP
3.      login with incorrect password
4.      displays Account is locked error message which is GOOD
5.      login with correct password this time
0
Comment
Question by:finance_teacher
1 Comment
 

Accepted Solution

by:
finance_teacher earned 0 total points
ID: 39257647
Please reply.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now