Contao 4 suggests to use form to log in to the front-end: https://docs.contao.org/manual/en/layout/module-management/user-modules/
But I am looking for a solution in my own created login module.
I have a user name (email) and password.
I would like to create my own function to log in and log out in the frontend.
Need a solution. please help.
Contao 4 Front-end login does not work like contao 3.5
208 views Asked by mrana At
1
Contao's firewall will react to any POST request with the following parameters:
See the ContaoLoginAuthenticationListener (note: it is different in Contao 4.4).
So as long as your own login module causes these POST request parameters to be sent (+
REQUEST_TOKENif necessary), then the user should be automatically logged in.