Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM.NET Change Password
Message
 
To
22/05/2013 08:55:38
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01574303
Message ID:
01574609
Views:
58
Frank,

>I have had no luck with using mmuserManager.
>
>I have had a bit more luck with mmAppBase.UsrMgr. Here is the code to validate the values entered and change the password that I have come up with:

Actually, when I talked about using mmUserManager, I actually meant exactly what you're doing--using the existing instance of mmUserManager found in mmAppBase.UserMgr.

I'm not sure why the UserMgr.UserID is empty after you save it--possibly there is code somewhere in the app that is clearing it out? For now you can try re-retrieving the current user record, or you can set a breakpoint and find out at what point the user id is getting cleared.

Ultimately, I also recommend that you move the code that performs checks on the password out of your user interface and into a business object. You can subclass the mmUserManager class to create your own customized subclass and then change your app's factory to instantiate your custom class instead.

All the best!
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform