edx/edx-platform — pull request #1594 by neurolit (2013-11-06 00:46:01+00:00)
Title: LMS: add CSRF token to register form

Hi!

We noticed that registering a new account doesn't work with Lynx browser (used by some visually-impaired people). It is related to CSRF token, which is added by some Javascript magic during the submit, but not present in the form itself. As Lynx doesn't understand Javascript, there is no CSRF token in the submitted data, and a 403 error is raised.

This PR adds the CSRF token in the form, as a hidden field as usual, allowing registering to work without Javascript.