Sometimes, we want to customize the login interface of DNN,
One quick way is modifying the ascx file of login control. In DNN 4.x+, you can find the login control at Admin/Authenticaion/Login.ascx
But when you open the Login.ascx, you will find you can not see the User Name and Login field, what’s the problem?
For supporting multiple authentication way, DNN 4.x+ redesigned the login control. Administrator can config DNN use many authentication provider, so User Name and Password field will be dynamic injected, in Admin/Authenticaion/Login.ascx, we can find those code:
<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" />
The result of those code is dynamic inject the login control, like this(from www.dotnetnuke.com)
LiveID authentication has been added in this case.
So, if you want to custom the login interface of DNN, you should modify the Admin/Authenticaion/Login.ascx and the specific login control of authentication provider you enabled.
Some authentication provider shipped with DNN in those folders
• DesktopModules/AuthenticationServices/DNN
• DesktopModules/AuthenticationServices/LiveID
• DesktopModules/AuthenticationServices/OpenID