@ -117,6 +117,11 @@ namespace SCP
return;
}
User user = DB.Users.Where(u => u.Name == p_userName).FirstOrDefault();
if (user == null)
{
Alert.Show(GetResourceKey("用户名或密码错误!"));
if (!user.Enabled)
Alert.Show(GetResourceKey("用户未启用或已锁定,请联系管理员!"));