LMS Login Registration CSRF Error

Hello Everyone,

I have been trying to solve this problem the whole week without a solution.
I am currently running modified lilac.2 with the latest Tutor version.

The login and register page simply give the following CSRF error when the form is submitted.
CSRF verification failed. Request aborted.

The login works for the admin page, however, no luck with the LMS one.

I have noticed that the login form submits to the /login path as opposed to the /api/user/v1/account/login_session/.

Can anyone give me a hint as to why this happens?

Thank you.

Could you clarify what you mean by “modified”? Does vanilla Tutor work for you? If yes, then the changes you made are the source of your problem. If not, then the bug comes from Tutor itself and we are going to need more information to resolve it: stacktrace, error logs and screenshots, for instance.

The bug was caused by additions to the /edx-platform/cms/static/common/js/utils/edx.utils.validate.js file I made.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.