users
users copied to clipboard
ajax login
I want to login form a vuejs frontend. For that I would need to get the csfr token first and than send it to the login action, or disable csrf for login. Is there any way to do it?
I have solved it by creating a get-token method in my own UsersController
It seems that in the last version my earlier solution does not work for ajax login. Any idea how to do that? I would like to send the username and the password via ajax to the login url.