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



Dominick,

This works fine Dim UserID as string =
Membership.GetUser(CreateUserWizard1.UserName).ProviderUserKey.ToString


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

.



Relevant Pages

  • Re: How do I retreive Password, Secret Question and its answer from the Memberhisp API?
    ... 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. ... This works fine Dim UserID as string = ... Dim clumsypwd As String = Membership.GeneratePassword(8, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Writing idiomatically for the cello and other string instruments
    ... writing for string instrument, specifically the cello. ... Also, get with a cello player and talk, ... Most of us sadly dont have a string player easily available- ...
    (rec.music.theory)
  • Re: Rewrite last line in text file
    ... Now parse the buffer backwards, ... TFileStream to that point ... start writing your replacement string. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Display contents of text file in the Browser
    ... It sounds like your app is attempting to read from the file at the same time ... that it is writing to it, ... process and attempting to read the file and display it at the same time. ... memory, and return that string to the client, while launching a separate ...
    (microsoft.public.dotnet.framework.aspnet)
  • How good is PERL at searching ASCII files?
    ... some text manipulation that needs doing and I've heard many times that ... or should I just spend 3 or 4 hours writing ... segregate the three param calls from the two param calls. ... The key elements being the string CONVERT, ...
    (perl.beginners)