Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Allowing user to change a password
Message
 
 
To
04/03/2010 12:31:33
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01452444
Message ID:
01452530
Views:
42
>>>>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?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform