Skip to content

Commit

Permalink
add identity__email param to assertion url (#500)
Browse files Browse the repository at this point in the history
Co-authored-by: Muhammad Faraz  Maqsood <faraz.maqsood@A006-01130.local>
  • Loading branch information
Faraz32123 and Muhammad Faraz Maqsood authored Jan 22, 2024
1 parent 1af989b commit 818ae6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/badges/backends/badgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _create_assertion(self, badge_class, user, evidence_url):
response_json = response.json()
assertion.data = response_json['result'][0]
assertion.image_url = assertion.data['image']
assertion.assertion_url = assertion.data['openBadgeId']
assertion.assertion_url = f"{assertion.data['openBadgeId']}?identity__email={user.email}"
assertion.backend = 'BadgrBackend'
assertion.save()
self._send_assertion_created_event(user, assertion)
Expand Down

0 comments on commit 818ae6c

Please sign in to comment.