Tuesday, January 06, 2009 Register  Login
RSS Feeds
Categories
  
Blog Archives
  
Blog

Entries for June 2008

Update

 169 Views ::  0 Comments RSS comment feed

I'm sorry that I have been silent for a while. I have been prepping for my eye surgery for a while, and finally had it this Tuesday.  I had a cataract removed from my right eye. Recovery had been made more difficult than usual, because I had scar tissue from a long lasting Iritis.

I have been putting 4 different kinds of eye drops, four times a day as part of my post-op treatment. I have to wait 5 minutes between each drop. All of the pain medication that I'm taking has made me woozy. Also, my right eye now sees better than my left eye, and my eyeglasses need the lens changed. It makes looking at any screen a chore.

I'm finally all moved into my new home office, so at least that's taken care of.

I know that a lot of you have been anxiously waiting for PainlessSVN to finally come out. I'll finish what's left, once my eyeglass prescription is fixed. It's sort of disturbing to look at the screen with my old prescription, and very hard to get much done.

posted @ Thursday, June 26, 2008 6:37 PM by Hector Sosa, Jr

Actions: E-mail | Permalink | Share on Facebook Google bookmarks Kick it! DZone it! del.icio.us

Retrieving login data for DotNetNuke

 218 Views ::  0 Comments RSS comment feed

 


Well, I had a hair pulling session trying to recover the passwords on my hobby site. Both my admin and host paswords got hosed, so I couldn't just login and fix them.
I first went Googling to find a winform app to help with this problem. Well, all the solutions were just modules to install on your DotNetNuke installation. Since I can't even login as host, this approach is just totally useless. Thankfully, DNN uses the ASP.NET 2.0 Membership Providers.
So, I started with Membership.Provider.RetrievePassword(). Oops, "Bad Data". Crap! I tried other account passwords with the same result. Double-Crap! I modified my little winform app, to now reset passwords. This time I used Membership.Provider.ResetPassword(). Got a new password for host, and I was able to login now. YES! I'm using .NET 2.0 for this winform app.
So if you want to get this working, here is what you need to do:
Make sure that you include the following sections from your DNN's website web.config file:
connectionStrings
system.web
You only need the membership and machineKey sections inside system.web.
Import System.Configuration and System.Web into your project. All of the needed API calls will be under Membership.Provider namespace. You'll find a lot of samples on how to use on Google.


Anyways, I wanted to put it somewhere, so that I can find it later, WHEN I would need to do this again.

posted @ Monday, June 16, 2008 11:09 AM by Hector Sosa, Jr

Actions: E-mail | Permalink | Share on Facebook Google bookmarks Kick it! DZone it! del.icio.us
Terms Of Use | Privacy Statement | SystemWidgets
Copyright 2002-2008 by SystemWidgets