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
3/7/2008 4:25 PM
 

Is there an easy way to set the Windows Login tab as the default tab? I still want the DNN login tab to be there but I'd like Windows Login tab to have focus by default when the page loads. Also, is there a reason why the Windows Login tab doesn't submit the form when the Enter key is pressed? I added a processLogin javascript function to the onkeydown event of the password textbox that calls the click event of the Login button if the Enter key is pressed but this seems like kind of a hacky way to do it (see below):

function processLogin(e) { if(e.keyCode == 13) { document.getElementById("<%=cmdLogin.ClientID %>").click(); } }

<asp:textbox id="txtPassword" columns="9" width="130" textmode="password" cssclass="NormalTextBox" runat="server" onkeydown=" processLogin(event);" />

 

 

 
New Post
3/7/2008 6:08 PM
 

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.

 
New Post
3/10/2008 2:10 PM
 

I've set the AD PackageID to 1 and the DNN PackageID to 2 in the Authentication table but the DNN login still has focus when the page initially loads. Is there another step that I'm missing? What I might do is just disable the DNN login. I'm building an Intranet that I'm told will have accounts that will always be tied to AD accounts but I it seems like whenever I'm told there will never be an exception there usually is at some point. But the vast majority of users will login in via the AD provider.

Thanks for all your help and thanks for spearheading the effort on the AD provider. It's really made the DNN framework a viable option for our corporate Intranet.

 
New Post
3/10/2008 5:11 PM
 

I'll have to go back and test that as I could have been wrong. If you do disable the DNN login make sure you promote at least one account to Host status so that you can access those features.

 
New Post
4/16/2008 10:52 AM
 

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

                <DNN:DNNTabStrip
                    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" />

 
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