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 ...Account Login module invisibleAccount Login module invisible
Previous
 
Next
New Post
6/29/2007 10:34 AM
 

Scenario: DNN 4.5.3, host account logged in, add Account Login module to a page... seemingly nothing happens, repeat 7 times..., logoff, WOW! 7 Account login modules on the page!

Reason: IF statement inside admin/security/Signin.ascx.vb that makes module container invisible if user is authenticated.

Besides that such a behavior is a definite bug (on administrative side, of course) as it makes it impossible to manage account login module, it's very questionable in general - I personally liked the previous version by far more - it was displaying User and Login skin objects is user is authenticated.

Quick solution: go to Signin.ascx and change

                ' if a Login Page has not been specified for the portal
                If IsAdminControl() Then
                    ' redirect to current page
                    Response.Redirect(NavigateURL(), True)
                Else ' make module container invisible
                    ContainerControl.Visible = False
                End If

TO

                ' if a Login Page has not been specified for the portal
                If IsAdminControl() Then
                    ' redirect to current page
                    Response.Redirect(NavigateURL(), True)
                Else ' make module container invisible
                    If Not UserInfo.IsInRole("Administrator") AndAlso Not UserInfo.IsSuperUser Then
                        ContainerControl.Visible = False
                    End If
                End If

This will (should) fix it for Administrative usage.

Another solution is to change it back to the functionality it had. To do that, add the following to admin/security/Signin.ascx

<asp:Panel ID="pnlAuthenticated" runat="server" Visible="false">
 <table cellspacing="0" cellpadding="3" border="0" summary="SignIn Design Table" width="160">
        <tr>
            <td><asp:Label ID="lblAuthenticatedHelp" runat="server" class="Normal" resourcekey="AuthenticatedHelp" /></td>
        </tr>
        <tr>
            <td><dnn:UserSkin ID="userSkin" runat="server" /></td>
        </tr>
        <tr>
            <td><dnn:LoginSkin ID="userLogin" runat="server" /></td>
        </tr>
    </table>
</asp:Panel>

AND!  in admin/security/Signin.ascx.vb replace 

            Else ' user is already authenticated

                ' if a Login Page has not been specified for the portal
                If IsAdminControl() Then
                    ' redirect to current page
                    Response.Redirect(NavigateURL(), True)
                Else ' make module container invisible
                    ContainerControl.Visible = False
                End If

            End If

WITH

            Else ' user is already authenticated

                    pnlAuthenticated.Visible = True
                   
            End If


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
6/29/2007 12:08 PM
 

Great post and recommendations!

I know they are changing this again in 4.5.4..


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/29/2007 1:15 PM
 

Hi Vitkoz
Thanks for your answer.

I only ended up with 5 account logins. What a crazy new behavious this is.

I tried both your methods but could not find any ref  to 
" if a Login Page has not been specified for the portal
                If IsAdminControl() Then" 
in signin.ascx ?

In the end I just overwrote the two files with 4.41 varieties and it seems to be fine. 

Thanks

Ian


Mutate and Survive
 
New Post
7/2/2007 2:36 PM
 

Essentially,  that is what this fix achieves :)


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
7/11/2007 9:40 AM
 

I have tried both solutions & they only screwed me up further.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Account Login module invisibleAccount Login module invisible


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