Commit 33636db9 by Clinton Blackburn

Updating user info cookie when user loads the dashboard

Updating this cookie here helps ensure the marketing site has the most up-to-date enrollment details.

ECOM-4895
parent 09f7b614
......@@ -106,7 +106,7 @@ from student.helpers import (
auth_pipeline_urls, get_next_url_for_login_page,
DISABLE_UNENROLL_CERT_STATES,
)
from student.cookies import set_logged_in_cookies, delete_logged_in_cookies
from student.cookies import set_logged_in_cookies, delete_logged_in_cookies, set_user_info_cookie
from student.models import anonymous_id_for_user, UserAttribute, EnrollStatusChange
from shoppingcart.models import DonationConfiguration, CourseRegistrationCode
......@@ -749,7 +749,9 @@ def dashboard(request):
'ecommerce_payment_page': ecommerce_service.payment_page_url(),
})
return render_to_response('dashboard.html', context)
response = render_to_response('dashboard.html', context)
set_user_info_cookie(response, request, user)
return response
def _create_recent_enrollment_message(course_enrollments, course_modes): # pylint: disable=invalid-name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment