?
Solved

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

Posted on 2013-06-04
1
Medium Priority
?
1,991 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

650 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