修改传递的参数
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a2809dc15a
commit
d1bf517aa7
|
@ -1036,7 +1036,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
});
|
||||
|
||||
//返回临时token
|
||||
userLoginReturnModel.JWTStr = _tokenService.GetToken(new UserTokenInfo() { UserName = userName });
|
||||
userLoginReturnModel.JWTStr = _tokenService.GetToken(new UserTokenInfo() { IdentityUserId = _userInfo.IdentityUserId, UserName = userName });
|
||||
|
||||
var userId = loginUser.Id;
|
||||
|
||||
|
@ -1089,13 +1089,14 @@ namespace IRaCIS.Core.Application.Service
|
|||
/// <summary>
|
||||
/// 验证密码成功后,选定角色,然后获取当前角色的Token
|
||||
/// </summary>
|
||||
/// <param name="identityUserId"></param>
|
||||
/// <param name="userTypeId"></param>
|
||||
/// <param name="_tokenService"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="BusinessValidationFailedException"></exception>
|
||||
public async Task<string> LoginSelectUserRole(Guid identityUserId, Guid userTypeId, [FromServices] ITokenService _tokenService)
|
||||
public async Task<string> LoginSelectUserRole(Guid userTypeId, [FromServices] ITokenService _tokenService)
|
||||
{
|
||||
var identityUserId = _userInfo.IdentityUserId;
|
||||
|
||||
var userTokenInfo = await _userRepository.Where(t => t.IdentityUserId == identityUserId && t.UserTypeId == userTypeId).Select(t => new UserTokenInfo()
|
||||
{
|
||||
UserRoleId = t.Id,
|
||||
|
|
Loading…
Reference in New Issue