Re: How do I retreive Password, Secret Question and its answer from the Memberhisp API?
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 May 2006 07:01:08 +0000 (UTC)
the login control does that automatically - there is no LockUser method or similar - if you want to do that you have to manunally set the flag in the db.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Dominick,
This works fine Dim UserID as string =
Membership.GetUser(CreateUserWizard1.UserName).ProviderUserKey.ToStrin
g
but I don't know why this
Dim clumsypwd As String =
Membership.GetUser(CreateUserWizard1.UserName).GetPassword.ToString
doesn't work?
I am writing all this code under CreateUserWizard_UserCreated i.e
after user has been created. If this isn't possible I am wondering how
the "Forgot Password?" link on the LoginControl generates the password
for the user so that he can change it to a meaningful password?
For now I got it working like this
Dim PassWord As String = CreateUserWizard1.Password
Dim clumsypwd As String = Membership.GeneratePassword(8,
8)
Membership.GetUser(CreateUserWizard1.UserName).ChangePassword(PassWord
, clumsypwd)
and this kind of solves what I am looking for. Could you help me how
do I lock the user after certain login trails?
Thanks -L
.
- Follow-Ups:
- References:
- Prev by Date: Active Directory and Roles
- Next by Date: Re: Active Directory and Roles
- Previous by thread: Re: How do I retreive Password, Secret Question and its answer from the Memberhisp API?
- Next by thread: Re: How do I retreive Password, Secret Question and its answer from the Memberhisp API?
- Index(es):
Relevant Pages
|
|