diff --git a/openedx/core/djangoapps/user_authn/cookies.py b/openedx/core/djangoapps/user_authn/cookies.py index bfff9bcf1b6c..6e6247016b72 100644 --- a/openedx/core/djangoapps/user_authn/cookies.py +++ b/openedx/core/djangoapps/user_authn/cookies.py @@ -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, } diff --git a/openedx/core/djangoapps/user_authn/tests/test_cookies.py b/openedx/core/djangoapps/user_authn/tests/test_cookies.py index 37f26bf87e0d..fa7c536f09b3 100644 --- a/openedx/core/djangoapps/user_authn/tests/test_cookies.py +++ b/openedx/core/djangoapps/user_authn/tests/test_cookies.py @@ -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(), }