Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How do I put the authentication fields on the home page?
Gives an error message -
Error: / invalid csrf token
and redirects the page - Forbidden
Forbidden
Would a widget help?
@julian Hardly. The fact is that I want to do the authorization in modal window.
Well, either way, your login form needs a csrf token added to it. You can do it via hidden input.
Retrieve it via js like so
require(['csrf'], function(csrf) { var token = csrf.get(); });