修改提示语言
parent
1b7f983e24
commit
a644f1084c
|
@ -185,11 +185,11 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
|||
var user = await _repository.FirstOrDefaultAsync<User>(u => u.UserName == signDTO.UserName && u.Password == signDTO.PassWord);
|
||||
if (user == null)
|
||||
{
|
||||
throw new BusinessValidationFailedException("password error");
|
||||
throw new BusinessValidationFailedException("用户名或密码错误");
|
||||
}
|
||||
else if (user.Status == UserStateEnum.Disable)
|
||||
{
|
||||
throw new BusinessValidationFailedException("The user has been disabled!");
|
||||
throw new BusinessValidationFailedException("当前用户已被禁用。");
|
||||
}
|
||||
return ResponseOutput.Ok();
|
||||
|
||||
|
|
Loading…
Reference in New Issue