中心调研这里增加额外的验证
parent
dc16cc2018
commit
cdcd3154b4
|
|
@ -56,6 +56,12 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
var item = addOrEditTrialSiteUserSurvey;
|
var item = addOrEditTrialSiteUserSurvey;
|
||||||
|
|
||||||
|
if (item.UserTypeId == null)
|
||||||
|
{
|
||||||
|
throw new BusinessValidationFailedException(_localizer["SystemCommon_WebErrorArgument"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//找下系统中是否存在该用户类型的 并且邮箱 或者手机的账户
|
//找下系统中是否存在该用户类型的 并且邮箱 或者手机的账户
|
||||||
var sysUserInfo = await _identityUserRepository.Where(t => t.EMail == item.Email,true).Include(t => t.UserRoleList).FirstOrDefaultAsync();
|
var sysUserInfo = await _identityUserRepository.Where(t => t.EMail == item.Email,true).Include(t => t.UserRoleList).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue