|
@@ -27,7 +27,7 @@ namespace OASystem.Infrastructure.Repositories.Login
|
|
public async Task<Result> Login(LoginDto loginDto)
|
|
public async Task<Result> Login(LoginDto loginDto)
|
|
{
|
|
{
|
|
Result result = new Result() { Code = -2 };
|
|
Result result = new Result() { Code = -2 };
|
|
- string SQLWhere = string.Format("Where Number='{0}'", loginDto.Number);
|
|
|
|
|
|
+ string SQLWhere = string.Format("Where Number='{0}' And Isdel = 0", loginDto.Number);
|
|
string sql = string.Format("Select * From Sys_Users With(NoLock) {0}", SQLWhere);
|
|
string sql = string.Format("Select * From Sys_Users With(NoLock) {0}", SQLWhere);
|
|
Sys_Users _entity = await GetSingleInfoBySqlWithNolockAsync(sql);
|
|
Sys_Users _entity = await GetSingleInfoBySqlWithNolockAsync(sql);
|
|
|
|
|
|
@@ -37,7 +37,7 @@ namespace OASystem.Infrastructure.Repositories.Login
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
- if (_entity.Password != loginDto.Password)
|
|
|
|
|
|
+ if (!_entity.Password.Equals(loginDto.Password))
|
|
{
|
|
{
|
|
result.Msg = "账户或密码错误!";
|
|
result.Msg = "账户或密码错误!";
|
|
return result;
|
|
return result;
|