I am using aspnet_Membership in my asp.net MVC 3 application and I am using maxInvalidPasswordAttempts=”5″ in web.config under membership\providers. I see that user is lockedout after 5 attempts ( that is what I want). Now on login view I want to show user that you are lockedout due to 5 invalid attempts. But I dont see provider.Islockedout property there.
Please suggest.
You can use the below code to check if the user is locked out.