Re: How do I retreive Password, Secret Question and its answer from the Memberhisp API?



you can do that manually by checking the IsLockedOut property - nothing built in AFAIK

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Dominick,
Here is what I am trying to do. The below portion is the membership
configuration setup in web.config file in my application.
the value maxInvalidPasswordAttempts="2" works good. I mean it doesn't
allow the users though they have entered correct password the third
time as we have provided its value 2.

But I am just wondering is there a way that said "User has been locked
out Please contact Adin @ 222-222-2222. Sorry for the incovenince"
kind of message?
Thanks
-L
<!--<system.web>
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, ..."
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="2"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
</system.web>-->


.



Relevant Pages

  • Re: Using login alias in Membership Provider
    ... Dominick Baier, DevelopMentor ... the membership data with additional data you need to use Profile and ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Full name & email from principal
    ... the static Membership class is a facade to the provider - the rest is done in web.config. ... Dominick Baier - DevelopMentor ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: When does the Roles/Username get set in HTTPContext?
    ... Dominick Baier ... I have just made an app that uses the 2.0 membership and roles system, ... roles or other context for that user gets saved for later use. ... Is there some special code I have to put in the login control events ...
    (microsoft.public.dotnet.framework.aspnet.security)