Skip to content

Commit

Permalink
fix Licensing - Portal User Issue for SBL (#1425)
Browse files Browse the repository at this point in the history
# Description

This PR includes the following proposed change(s):

- spdbt-3087(Licensing - Portal User Issue for SBL)
  • Loading branch information
esdd1995 authored Sep 20, 2024
2 parents fe87669 + cce294a commit 934a200
Show file tree
Hide file tree
Showing 5 changed files with 3,185 additions and 3,218 deletions.
2 changes: 1 addition & 1 deletion src/Spd.Manager.Licence/BizProfileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task<BizUserLoginResponse> Handle(BizLoginCommand cmd, Cancellation
_logger.LogError("Cannot get the business information from BCeID web service.");

IdentityQueryResult idResult = await _idRepository.Query(
new IdentityQry(cmd.BceidIdentityInfo.UserGuid.ToString(), cmd.BceidIdentityInfo.BizGuid, IdentityProviderTypeEnum.BusinessBceId),
new IdentityQry(cmd.BceidIdentityInfo.UserGuid.ToString(), cmd.BceidIdentityInfo.BizGuid, null),
ct);
if (idResult != null && idResult.Items.Any())
currentUserIdentity = idResult.Items.FirstOrDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ private async Task<PortalUserResp> VerifyBizPortalUserInvitationAsync(BizPortalU
spd_identityid = Guid.NewGuid(),
spd_orgguid = verify.OrgGuid.ToString(),
spd_userguid = verify.UserGuid.ToString(),
spd_type = (int)IdentityTypeOptionSet.BusinessBceId
};
_context.AddTospd_identities(identity);
}
Expand Down
1 change: 1 addition & 0 deletions src/Spd.Resource.Repository/User/OrgUserRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private async Task<OrgUserManageResult> VerifyOrgUserInvitationAsync(UserInvitat
spd_identityid = Guid.NewGuid(),
spd_orgguid = verify.OrgGuid.ToString(),
spd_userguid = verify.UserGuid.ToString(),
spd_type = (int)IdentityTypeOptionSet.BusinessBceId
};
_dynaContext.AddTospd_identities(identity);
}
Expand Down
Loading

0 comments on commit 934a200

Please sign in to comment.