Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem getting DNN 5.0 to use custom login pageProblem getting DNN 5.0 to use custom login page
Previous
 
Next
New Post
7/12/2009 7:01 PM
 

Thanks Cathal.

 
New Post
2/9/2010 8:50 AM
 

Here is another work around that doesn't require a compile with Visual Studio.  You can just edit this one file.  Look at \DesktopModules\Admin\Authentication\Login.ascx.vb and look at line 657 in the Page Load Event Handler.  Add a ' (apostrophe) before lines 657 and line 670.  This will comment out the logic that does the check for the Login Module.

 NOTE: You will have to watch out if your ever upgrade the site later!!!

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

' Verify if portal has a customized login page
If Not Null.IsNull(PortalSettings.LoginTabId) And IsAdminControl() Then 
      'If ValidateLoginTabID(PortalSettings.LoginTabId) Then  <-- Comment out this line
            ' login page exists and trying to access this control directly with url param -> not allowed
            Dim params(2) As String
            If Not String.IsNullOrEmpty(Request.QueryString("returnUrl")) Then
                  params(0) = "returnUrl=" & Request.QueryString("returnUrl")
            End If
            If Not String.IsNullOrEmpty(Request.QueryString("username")) Then
                  params(1) = "username=" & Request.QueryString("username")
            End If
            If Not String.IsNullOrEmpty(Request.QueryString("verificationcode")) Then
                  params(2) = "verificationcode=" & Request.QueryString("verificationcode")
            End If
            Response.Redirect(NavigateURL(PortalSettings.LoginTabId, "", params))
      'End If <-- Comment out this line
End If  


Eric Shafer
Houston Web Designer
Click and Create

281-206-2631
 
New Post
2/9/2010 2:19 PM
 
Hi guys... The CORE team did add some code to get around this. Here is what you do. 1. Add an Account Login Module (DNN one) on the page 2. Set the security to be visible to Admins only 3. Add whatever 3rd party login module you want to use to the page as well Basically users will never see the Account Login module but DNN will recognize its there. At one point DNN was checking the security of that module too but not anymore as long as its on the page. -Chad
 
New Post
2/22/2010 12:37 PM
 

RRRRGH...

This is actually a bug... thanks to your posts, I was able to deal with the issue without "touching" the base code. I went into the database and edited both the Modules table and the Desktop Modules table to give my custom login module the friendly name "Account Login".

No more errors from there on...

 

 
New Post
3/11/2010 11:51 PM
 

Hi Chad,

Its 3/11/10 and DNN 5.2.2 installed at a Host and I'm getting the same problem.

Added Account Login to page ( set permission denied to users and only Admin has perms ).

Same problem.

Do not modify code base.

Was there a fix as of 5.2.2 ?

Thanks, Paul

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem getting DNN 5.0 to use custom login pageProblem getting DNN 5.0 to use custom login page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out