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