Skip to content

Commit

Permalink
Merge pull request #29769 from openedx/shafqat/VAN-764
Browse files Browse the repository at this point in the history
feat: VAN-764 - Added email in marketing user information cookie
  • Loading branch information
shafqatfarhan authored Feb 14, 2022
2 parents f1a22e3 + c62895a commit fea9625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions openedx/core/djangoapps/user_authn/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def _get_user_info_cookie_data(request, user):
user_info = {
'version': settings.EDXMKTG_USER_INFO_COOKIE_VERSION,
'username': user.username,
'email': user.email,
'header_urls': header_urls,
'user_image_urls': image_urls,
}
Expand Down
1 change: 1 addition & 0 deletions openedx/core/djangoapps/user_authn/tests/test_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def test_get_user_info_cookie_data(self):
expected = {
'version': settings.EDXMKTG_USER_INFO_COOKIE_VERSION,
'username': self.user.username,
'email': self.user.email,
'header_urls': self._get_expected_header_urls(),
'user_image_urls': self._get_expected_image_urls(),
}
Expand Down

0 comments on commit fea9625

Please sign in to comment.