Fix Login Focus to Focus on password field if Username value exists
This commit is contained in:
parent
5c4e0ac028
commit
9e4b90d790
1 changed files with 6 additions and 3 deletions
|
@ -142,6 +142,12 @@ namespace WebsitePanel.Portal
|
|||
if (cookie != null)
|
||||
{
|
||||
txtUsername.Text = cookie.Value;
|
||||
txtPassword.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
// set focus on username field
|
||||
txtUsername.Focus();
|
||||
}
|
||||
|
||||
if (PortalUtils.GetHideThemeAndLocale())
|
||||
|
@ -151,9 +157,6 @@ namespace WebsitePanel.Portal
|
|||
ddlTheme.Visible = false;
|
||||
lblTheme.Visible = false;
|
||||
}
|
||||
|
||||
// set focus on username field
|
||||
txtUsername.Focus();
|
||||
}
|
||||
|
||||
protected void cmdForgotPassword_Click(object sender, EventArgs e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue