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
3/20/2009 1:26 PM
 

Hi guys... With the help of a few customers I found out what I think is happening, I think the CORE code is checking to see if a standard DNN Account Login module exists on a page before it allows the page to be the actual login page, while this is great as a precaution to make sure users can sign in, it doesn't really work or play friendly with any 3rd party login modulse/custom login components etc...

The 'work around' is to add a standard DNN login module to a page and change the visibility to be displayed to Administrators only, although this is a work around I hope this gets fixed in future DNN versions, just seems to me that this really limits functionality.

 

-Chad

 

 
New Post
3/22/2009 12:29 PM
 

Chad , it could be hard coded, but are you sure you don't need to alter any code in your login module to make it identifiable by DNN as a login module?
Maybe it's worth looking at the login module supplied with DNN to see if this happens?

If you are certain there is an issue whereby DNN will only accept the login module bundled could you please log this issue with detail at support.dotnetnuke.com so we can get this fixed.

Please log your issues at support.dotnetnuke.com or it won't get fixed! :).



Alex Shirley


 
New Post
5/19/2009 12:33 PM
 

Correct, here is the cuplrit called by Globals.LoginUrl (also located in Globals.vb) for your custom login tabid.

        Public Function ValidateLoginTabID(ByVal tabId As Integer) As Boolean
            Dim hasAccountModule As Boolean = Null.NullBoolean
            For Each objModule As ModuleInfo In New ModuleController().GetTabModules(tabId).Values
                If objModule.ModuleDefinition.FriendlyName = "Account Login" Then
                    hasAccountModule = True
                    Exit For
                End If
            Next

            Return hasAccountModule
        End Function

As you can see if your modules FriendlyName is not "Account Login" then it will default redirection to the current tab, using the default DNN login control. A simple fix is to just place the default "Account Login" module on the page and set the security to admin only. This will pass this check and redirect to the page successfully.

Cheers
Shea

test

 
New Post
7/3/2009 1:37 PM
 

Yes.. The suggested work around for our clients running Dynamic Login (or any other 3rd party login module) was to simply add the Account Login module to the page, and set the visible setting to be 'Admin Only'. This was at least a good work around to get around the issue and ability to allow you to have a custom login module. Within the 5.1 release this isn't the case though, I guess the code is also checking to see that the module is not only there but that it also visible to the user. If the account login module is not visible the 5.1 release displays this message:

A critical error has occurred.
You have been redirected to this default Login Page because the Login Page set for this website does not contain a valid DotNetNuke Account Login module, or the permissions have not been set correctly.

This really limits the DNN login process, I can see why they did it (many users in the past would accidentally set the login page and then never be able to sign in again) but with this code I don't see a way any custom login module can work within DNN. Hopefully they will offer a suggested work around or fix soon.

 

-Chad

 

 
New Post
7/6/2009 4:30 AM
 

The same thing (kind of...) happens with the profile page.
I was using a third party module for managing the user profile, so I set the User page in the Site settings to a page with the 3rd party module.
However, when you have an incomplete profile, you will not be redirected anymore to the user page, but DNN will directly show the DNN profile page when you try to log in. 

 
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