提交当前本机整理版本
This commit is contained in:
@@ -638,4 +638,29 @@ namespace Lskj.Main
|
||||
ADUtil.ADPwd = SystemInfo.Instance.ADPwd;
|
||||
if (string.IsNullOrEmpty(ADUtil.ADPath))
|
||||
{
|
||||
//responseinfo.msg = "AD域配置不正确,请检�
|
||||
//responseinfo.msg = "AD域配置不正确,请检查!";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (ADUtil.ADLogin == true)
|
||||
{
|
||||
LoginResult result = ADUtil.LoginByAccount(LoginAccount, Pwd);
|
||||
responseinfo.success = true;
|
||||
if (result != LoginResult.LOGIN_USER_OK)
|
||||
{
|
||||
responseinfo.success = false;
|
||||
switch (result)
|
||||
{
|
||||
case LoginResult.LOGIN_USER_ACCOUNT_INACTIVE: responseinfo.msg = "登录失败,用户账号被禁用!"; break;
|
||||
case LoginResult.LOGIN_USER_PASSWORD_INCORRECT: responseinfo.msg = "登录失败,用户密码不正确!"; break;
|
||||
case LoginResult.LOGIN_USER_DOESNT_EXIST: responseinfo.msg = "登录失败,用户不存在!"; break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user