Cool, I think this addresses both my concerns. I did 5 minutes of digging and it looks like personalization is just something like this (untested):
String u = MyUsername.Text; String p = GetMD5Hash(MyPassword.Text); DotNetNuke.Services.Personalization.Personalization.SetProfile("MyModuleName","MyUsername",u); DotNetNuke.Services.Personalization.Personalization.SetProfile("MyModuleName","MyPassword",p);
So, to go ahead and put it out there, without digging up MD5 stuff (not too familiar with workings of it all) - how would I get the password back out when the time came?
String u = DotNetNuke.Services.Personalization.Personalization.GetProfile("MyModuleName","MyUsername"); String p = MagicVooDooMethod(DotNetNuke.Services.Personalization.Personalization.GetProfile("MyModuleName","MyPassword"));
I did find the MSDN article explaining a bit more of the method you referenced. http://msdn2.microsoft.com/en-us/library/system.security.cryptography.md5cryptoserviceprovider.aspx I think I am close, I've been going for 20 hours straight on several projects so everything is getting fuzzy right now. Any more pointers would be very welcome. Thanks for the help. |