diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index 39cbef3c4..d9e7f7244 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -263,6 +263,8 @@ namespace IRaCIS.Core.Application.Service IsFirstAdd = false, + IsNeedResetPwd = false, + EmailToken = String.Empty }, true); @@ -449,9 +451,9 @@ namespace IRaCIS.Core.Application.Service catch (Exception) { - + } - + var find = await _identityUserRepository.FindAsync(identityUserId); @@ -1279,7 +1281,7 @@ namespace IRaCIS.Core.Application.Service PermissionStr = t.UserTypeRole.PermissionStr, UserName = t.IdentityUser.UserName, UserTypeShortName = t.UserTypeRole.UserTypeShortName, - UserWorkLanguage=t.IdentityUser.UserWorkLanguage + UserWorkLanguage = t.IdentityUser.UserWorkLanguage }).FirstOrDefaultAsync(); await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, ActionIdentityUserId = userTokenInfo.IdentityUserId, ActionUserName = $"{userTokenInfo.UserName}", ActionUserType = userTokenInfo.UserTypeShortName, OptType = UserOptType.LoginSelectRole }, true);