Merge pull request #2070 from edx/fix/gprice/moar-cookies
Ensure CSRF cookie is present for login and registration pages
This commit is contained in:
@@ -213,6 +213,7 @@ def _cert_info(user, course, cert_status):
|
||||
return d
|
||||
|
||||
|
||||
@ensure_csrf_cookie
|
||||
def signin_user(request):
|
||||
"""
|
||||
This view will display the non-modal login form
|
||||
@@ -227,6 +228,7 @@ def signin_user(request):
|
||||
return render_to_response('login.html', context)
|
||||
|
||||
|
||||
@ensure_csrf_cookie
|
||||
def register_user(request):
|
||||
"""
|
||||
This view will display the non-modal registration form
|
||||
|
||||
Reference in New Issue
Block a user