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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect after Failed loginRedirect after Failed login
Previous
 
Next
New Post
3/27/2012 12:35 PM
 

DNN ver: 5.6.7

We have a custom module for logging in and registration etc on our portal's homepage. Currently if someone tries visiting a bookmarked link - but they're not logged in - the portal redirects them to the standard, default DNN login module aka the wrong one.

https://mysite.com/Default.aspx?tabid=5688&ctl=Login&returnurl=%2fpreview%2fManage%2fCustomPortalAdministration%2ftabid%2f5688%2fDefault.aspx
&error

I'm not even sure what I need to do, to get users back to our custom login module. Do I need to set a default redirect to the portal homepage? Do I need to set the default login module to our custom login module?

Any help is much appreciated.

 
New Post
3/27/2012 2:28 PM
 
This post addresses the issue. If a 3rd party login module doesn't have the FriendlyName = "AccountLogin" you'll get this error. Here's the link -

http://www.dotnetnuke.com/Resources/Forums/forumid/111/threadid/282084/scope/posts/threadpage/3.aspx
 
New Post
3/27/2012 4:38 PM
 

In case anyone is wondering, or has the same problems, I commented out a section in the Globals.vb code that checks to see if the login module has a FriendlyName of "Account Login" and just had the function return "True." 

It's a core code modification/hack, but it works.

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
            '        'We need to ensure that Anonymous Users or All Users have View permissions to the login page
            '        Dim tab As TabInfo = New TabController().GetTab(tabId, objModule.PortalID, False)
            '        If TabPermissionController.CanViewPage(tab) Then
            '            hasAccountModule = True
            '            Exit For
            '        End If
            '    End If
            'Next
            hasAccountModule = True
            Return hasAccountModule
        End Function

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect after Failed loginRedirect after Failed login


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