Solved

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

Posted on 2013-06-04
1
1,898 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

695 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