重置密码修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
db360938fd
commit
76649f264b
|
@ -325,7 +325,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
|
||||
////查找改邮箱或者手机的用户
|
||||
var exist = await _identityUserRepository.AnyAsync(t => t.EMail == email);
|
||||
var exist = await _identityUserRepository.AnyAsync(t => t.EMail == email && t.Status == UserStateEnum.Enable);
|
||||
|
||||
if (!exist)
|
||||
{
|
||||
|
@ -353,7 +353,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
/// <exception cref="BusinessValidationFailedException"></exception>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("{email}/{verifyCode}")]
|
||||
public async Task<List<UserAccountDto>> VerifyAnonymousVerifyCode(string email, string verifyCode)
|
||||
public async Task<UserAccountDto> VerifyAnonymousVerifyCode(string email, string verifyCode)
|
||||
{
|
||||
var verificationRecord = await _verificationCodeRepository
|
||||
.Where(t => t.UserId == Guid.Empty && t.Code == verifyCode && t.CodeType == VerifyType.Email && t.EmailOrPhone == email).OrderByDescending(t => t.CreateTime).FirstOrDefaultAsync();
|
||||
|
@ -382,11 +382,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
}
|
||||
|
||||
var list = await _identityUserRepository.Where(t => t.EMail == email && t.Status == UserStateEnum.Enable).Select(t => new UserAccountDto() { Id= t.Id, UserName = t.UserName, UserRealName = t.FullName }).ToListAsync();
|
||||
var userInfo = await _identityUserRepository.Where(t => t.EMail == email && t.Status == UserStateEnum.Enable).Select(t => new UserAccountDto() { Id = t.Id, UserName = t.UserName, UserRealName = t.FullName }).FirstOrDefaultAsync();
|
||||
|
||||
|
||||
|
||||
return list;
|
||||
return userInfo;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue