Commit d4cee365 by Greg Price

Ensure CSRF cookie is present for login and registration pages

parent ba983d5f
...@@ -213,6 +213,7 @@ def _cert_info(user, course, cert_status): ...@@ -213,6 +213,7 @@ def _cert_info(user, course, cert_status):
return d return d
@ensure_csrf_cookie
def signin_user(request): def signin_user(request):
""" """
This view will display the non-modal login form This view will display the non-modal login form
...@@ -227,6 +228,7 @@ def signin_user(request): ...@@ -227,6 +228,7 @@ def signin_user(request):
return render_to_response('login.html', context) return render_to_response('login.html', context)
@ensure_csrf_cookie
def register_user(request): def register_user(request):
""" """
This view will display the non-modal registration form This view will display the non-modal registration form
......
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