//登录用户域名
string username = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
if (!string.IsNullOrEmpty(username))
{
string[] array = username.Split(new char[]{'\\'},StringSplitOptions.RemoveEmptyEntries);
if (array.Length==2)
{
username = array[1].ToString().Trim();
}
}
if (IsDomainAuthenticated(username, "dalian"))
{
string url = Provider.Authenticate(
(string)e.GetValue("UserId"),
(string)e.GetValue("Password")
);
View.LoginSucceeded(url);
}
throw new ApplicationException("admin_login_domainFailed");