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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationSet Windows Login Tab as defaultSet Windows Login Tab as default
Previous
 
Next
New Post
4/16/2008 11:29 AM
 

In regards to setting the default button for the login, add a panel with the DefaultButton property set to "cmdLogin" to the ActiveDirectory's Login.ascx file.

<asp:Panel ID="pnlWindowLogin"  DefaultButton="cmdLogin" runat="server">
<table cellspacing="0" cellpadding="3" border="0" summary="SignIn Design Table" width="160">
 <tr>
  <td colspan="2" class="SubHead" align="center"><dnn:label id="plUsername" controlname="txtUsername" runat="server" text="UserName:"></dnn:label></td>
 </tr>
 <tr>
  <td colspan="2"  align="center"><asp:textbox id="txtUsername" columns="9" width="130" cssclass="NormalTextBox" runat="server"  /></td>
 </tr>
 <tr>
  <td colspan="2" class="SubHead" align="center"><dnn:label id="plPassword" controlname="txtPassword" runat="server" text="Password:"></dnn:label></td>
 </tr>
 <tr>
  <td colspan="2" align="center"><asp:textbox id="txtPassword" columns="9" width="130" textmode="password" cssclass="NormalTextBox" runat="server" /></td>
 </tr>
    <tr id="trCaptcha1" runat="server">
     <td colspan="2" class="SubHead" align="center"><dnn:label id="plCaptcha" controlname="ctlCaptcha" runat="server" text="Password:"></dnn:label></td>
    </tr>
    <tr id="trCaptcha2" runat="server">
     <td colspan="2" align="center"><dnn:captchacontrol id="ctlCaptcha" captchawidth="130" captchaheight="40" cssclass="Normal" runat="server" errorstyle-cssclass="NormalRed" /></td>
    </tr>
    <tr>
     <td id="tdLogin" runat="server" colspan="2" align="center"><asp:button id="cmdLogin" resourcekey="cmdLogin" cssclass="StandardButton" text="Login" runat="server" /></td>
    </tr>
</table>
</asp:Panel>

 
New Post
5/11/2011 12:27 PM
 
Mike Horton wrote:

Easy depends on your perspective.  Is there an order selector in the DNN interface? No there isn't but if you open your database, go into the Authentication table, and change the PackageID for DNN so that it's higher than the Active Directory PackageID it'll then be listed as second.

As for you section question: It's because the Login wrapper is a Tab control so all the controls are loaded and as you switch between them they become visible (everything between the Login selection buttons and Register (or Remember Login) belongs to the individual authentication providers). Because the Standard Login button grabs the focus when the page is loaded it cancels out the AD provider's attempt to capture the focus. You'll find that after you switch the order as per the above that the event will fire as you expect it to on Windows Login but won't anymore on the Standard DNN control.

 Just tried out your tip on our testing environment, which is on DNN 5.2.3 (as that's our current production version too). Doesn't work. However, if I use your tip on the primary key, thus the AuthenticationID-field, it does. But, to change the AuthenticationID-field, you have to first alter the field itself to not auto-increment, then make the changes, and put it back to auto-incrementing again.

So yes, it seems to be working, but it's just another hack that's most probably not officially supported by DNN and thus there's always the risk that it suddenly stops working in a future version, and then we're back at the starting point, out to find another hack to fix it again, goto loop.

In any good applications administrators perspective, using dirty hacks should only be a fallback-solution; thus be used only if strictly necessary.

Are there any plans yet, to make DNN support ordering the authentication tabs natively? It should really be a simple task and by putting in the effort to add it to DNN I think you'd make a lot of DNN-users even happyer than they already are!

I'd be happy to coöperate in developing the feature, in order to support DNN that way. I think my employer would agree to that too ;)

 
New Post
5/11/2011 3:21 PM
 
There has been a change somewhere along the line by the core architects where if the default login is enabled it's automatically the first tab.... http://www.dotnetnuke.com/Resources/Forums/tabid/795/forumid/89/threadid/408812/scope/posts/Default.aspx. There is an open issue on the DotNetNuke support site requesting that the ability to order the providers http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=9818&PROJID=2 so it's a case of wait and see. Or if you developed the code that would do it and submitted it to the team it may get implemented faster.
 
New Post
5/12/2011 6:43 AM
 
I added a comment to the issue on Gemini. Thanks for pointing it out.
 
New Post
5/22/2011 5:08 AM
 
Andrew wrote:

In the Login.ascx file add SelectedIndex="1" to the tabstrip control

                                    ID="tsLogin"
                    runat="server" 
                    TabRenderMode="All"
                    CssTabContainer="LoginTabGroup"
                    CssContentContainer="LoginContainerGroup"
                    DefaultContainerCssClass="LoginContainer"
                    DefaultLabel-CssClass="LoginTab"
                    DefaultLabel-CssClassHover="LoginTabHover"
                    DefaultLabel-CssClassSelected="LoginTabSelected"
                    visible="false"
                    SelectedIndex="1" />

 By adding this tip, i've managed to change the default to the ActiveDirectory login.
without changing anything else.
:)

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationSet Windows Login Tab as defaultSet Windows Login Tab as default


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