Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Allowing user to change a password
Message
From
04/03/2010 12:43:48
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01452444
Message ID:
01452531
Views:
33
>>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform