Skip to content

Commit

Permalink
Merge pull request #1589 from bcgov/fix/EDX-1892
Browse files Browse the repository at this point in the history
EDX-1892: relink user fixes
  • Loading branch information
arcshiftsolutions authored Oct 18, 2023
2 parents 7e72993 + dc066ef commit eae6643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/components/edx/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ async function relinkUserSchoolOrDistrictAccess(req, res) {
email: edxUserDetails.email,
edxUserId: req.body.params.userToRelink,
edxUserSchoolID: req.body.params.userSchoolID,
edxUserExpiryDate: req.body.params.edxUserExpiryDate
};
await postData(token, config.get('server:edx:exchangeURL') + '/school-user-activation-relink-saga', payload,null, userName);
} else {
Expand All @@ -867,6 +868,7 @@ async function relinkUserSchoolOrDistrictAccess(req, res) {
email: edxUserDetails.email,
edxUserId: req.body.params.userToRelink,
edxUserDistrictID: req.body.params.edxUserDistrictID,
edxUserExpiryDate: req.body.params.edxUserExpiryDate
};
await postData(token, config.get('server:edx:exchangeURL') + '/district-user-activation-relink-saga', payload,null, userName);
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/secure-message/AccessUserCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ export default {
const payload = {
params: {
userToRelink: this.user.edxUserID,
edxUserExpiryDate: this.getExpiryDate(this.user)
}
};
if (this.instituteTypeCode === 'SCHOOL') {
Expand All @@ -402,6 +403,7 @@ export default {
payload.params.districtID = this.instituteCode;
payload.params.edxUserDistrictID = userDistrict.edxUserDistrictID;
}
ApiService.apiAxios.post(Routes.edx.EXCHANGE_RELINK_USER, payload)
.then(() => {
this.setSuccessAlert('User has been removed, email sent with instructions to re-link.');
Expand Down

0 comments on commit eae6643

Please sign in to comment.