Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Allowing user to change a password
Message
De
04/03/2010 12:43:48
 
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01452444
Message ID:
01452531
Vues:
34
>>>>>Hi,
>>>>>
>>>>>is there a UI built into the framework to allow a user to change their password?
>>>>
>>>>Not a built in UI for that, but you can implement a form to do it easy enough.
>>>>Tim
>>>
>>>Tim,
>>>
>>>I need a nudge in the right direction, please. I can't find any reference in the help file as to how to access the currently logged in User. I am assuming that one exists. I need this so that I can authenticate the user against the entered password before allowing the password to be changed. I figured I'd need something like this:
>>>
>>>
if oCurrentUser.Authenticate(password)
>>>   // then I can change the password (after other checks of course
>>
>>I tried this:
>>
>>
if (oUser.AuthenticateUser(SecurityUserId, currentPass))
>>
>>but get an error: Object reference not set to an instance of an object.
>>
>>Anyone can tell me how to use this?
>>
>>Thanks
>
>Was oUser variable already holding a valid user?

Thanks Naomi, I had declared oUser, but not instantiated it.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform