DotNetNuke Powered!
          
John Mitchell's (mostly DotNetNuke) Blog - Can't Login to your DotNetNuke Portal?
 Thursday, September 29, 2005

If you have mistakenly set your login page to a page that does not have a login control on it then you might be wondering how you are ever going to get logged in again to fix it.

Click on the link below for an alternate login page that you can upload to your site.

Be sure to read the included readme file.

LoginForDotNetNuke.zip (1.74 KB)

**Update: The above download only works for versions 3.1/4/1 and below.  I'm still trying to get one to work for 3.3/4.3 since things were changed in the way that the ClientAPI works with UserControls.

Also, if you can get access to your DB then you can run a query to fix this problem.

Update Portals Set LoginTabId=null Where PortalId=xx

xx is the id of the portal (probably 0).

***Update: I have created a new solution that you can use in the following blog:

DotNetNuke Login is not working!! How am I going to get back in?

10/5/2005 6:23:22 AM (Central Daylight Time, UTC-05:00)
Thanks a million John! Tried it and all worked just fine!
10/6/2005 7:56:09 AM (Central Daylight Time, UTC-05:00)
Thanks for the feedback. I'm glad it worked out for you.
10/28/2005 2:22:20 AM (Central Daylight Time, UTC-05:00)
Thanks a lot ! You save my work !!! Great solution for this problem !
Nicol
12/2/2005 2:36:29 PM (Central Standard Time, UTC-06:00)
You are a life saver...many thanks!
12/30/2005 4:29:58 PM (Central Standard Time, UTC-06:00)
Thank you!! You saved my time!
1/14/2006 12:45:03 PM (Central Standard Time, UTC-06:00)
On a related note, I've got a dnn 3.2.2 site and am trying to set a different login page, but can't get it to work. I have a page named 'Login' and have added an account login module to the page. Then I have set the login page under the site settings to the page named 'Login'. After this i perform an iisreset and navigate to my site and click login. It takes me to the 'Login' page and when I try to login it does nothing, just posts back to the page. Any thoughts?
1/25/2006 12:09:50 PM (Central Standard Time, UTC-06:00)
This looks good. I have the problem and will test. i will give you feedback on how it went.
1/27/2006 9:52:52 PM (Central Standard Time, UTC-06:00)
Just to follow up John. I tried your tool/workaround and it worked wonderfully. Nice work....
1/28/2006 10:25:02 AM (Central Standard Time, UTC-06:00)
Excellent Kay. I'm glad it worked for you.
5/13/2006 11:54:42 AM (Central Daylight Time, UTC-05:00)
Thanks John! It worked flawlessly. I'm glad to know I'm not the only one who removed the login. At least It happened in my first hour of DNN exploration. I bet if I read the directions it would tell me not to do that :-)
5/17/2006 8:09:19 PM (Central Daylight Time, UTC-05:00)
John,

I have the same issue of accidentally setting the login page to the home page and can't login.
My site is hosted by godaddy.com and they don't give you access to the file system or database.
When I uploaded the login.aspx I get a runtime error.
Any ideas?

Thank you,
John
5/17/2006 8:17:33 PM (Central Daylight Time, UTC-05:00)

Can you get access to your DB? If so then you can run a query to fix it.

Update Portals Set LoginTabId=null Where PortalId=xx

xx is the id of the portal (probably 0).


5/18/2006 2:45:19 PM (Central Daylight Time, UTC-05:00)
Thanks man, saved my work.
5/29/2006 3:41:31 AM (Central Daylight Time, UTC-05:00)
Thanks a lot!!!
Praveen
6/8/2006 12:31:18 AM (Central Daylight Time, UTC-05:00)
Muchas gracias! Really appreciate the fix for this flaw!
Archer
7/9/2006 3:58:13 AM (Central Daylight Time, UTC-05:00)
This saved my bacon too.
Many thanks

Trevor
7/13/2006 9:25:29 AM (Central Daylight Time, UTC-05:00)
Thanks for this - I've been banging my head on my desk for 2 days now trying to fix this when a last-ditch google search revealed this gem!

7/17/2006 5:55:42 PM (Central Daylight Time, UTC-05:00)
It looks like I am going to have to update the script to work on a DNN 4.3 install.

The new User Management enhancements must have broke it.

I'll try to check this out tonight.
7/17/2006 9:34:29 PM (Central Daylight Time, UTC-05:00)
Thank you John! I look forward to hearing what you find out. I'll post here again if I learn anything new.
8/1/2006 11:04:19 AM (Central Daylight Time, UTC-05:00)
I set my login page under site settings to redirect my login page to a dynamic login page i made.

i screwed up and made the settings on my dynamic login page to be hidden and not visible.

Cant get in.

Please help.

thanks,
10/9/2006 1:34:39 PM (Central Daylight Time, UTC-05:00)
Thank You! Thank You! This saved my life. And, btw- It works on 4.0.3!
rockbridge
10/16/2006 10:11:40 AM (Central Daylight Time, UTC-05:00)
John I have a 3.2.2 site. Did you get your solution to work for 3.2.2
10/29/2006 10:22:36 PM (Central Daylight Time, UTC-05:00)
Thanks... I spent a lot of time going through the DB tables looking for this config setting and couldn't find it until I read your SQL statement and realised it was in the Portals table. Good one!
James
11/1/2006 2:09:18 AM (Central Daylight Time, UTC-05:00)
Same Problem as everyone else. When I open SQL Express 2005 there are no tables listed in the DotNetNuke database. I try to run the update command and I get the error, Portal Object Unknown.

Thoughts?

Thanks - Jason Palmer.
11/1/2006 9:53:20 PM (Central Daylight Time, UTC-05:00)
Hi

did this for 4.3 site, cant get in. Any update
11/7/2006 2:44:36 PM (Central Standard Time, UTC-06:00)
John, do you have or have you seen a logon.aspx for version 4.03.05? I used it for an earlier version and it saved me. Now I have upgraded and find I need it again. Thanks for your work!
12/3/2007 5:34:43 AM (Central Standard Time, UTC-06:00)
Thanks Bunch!
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):