Mautic Community Forums

redirect to mautic from my own jsp application

i have my own apllication jsp and there is one form like mautic login .if the form submited by user it have to redirect to mautic dashbord . is it possible



and here my own app login code.




<input type="text" id="username" name="_username"
value="XXXXXX" required autofocus
placeholder='Username or email' />

<input type="password" id="password" name="_password" value="XXXXX"
required
placeholder='Password' />

click here



and when i submit the form it showing csrf token invalid
help me thank you!!!

i have my own apllication jsp and there is one form like mautic login .if the form submited by user it have to redirect to mautic dashbord . is it possible

and here my own app login code.

click here

and when i submit the form it showing csrf token invalid
help me thank you!!!

yeah agree

and also i tried one technique that is i get the full content of mautic login page using file_get_content method and echo that into my own page .now it is like a real mautic login page . and now it have the CSRF token and everything .and i enter the username and password .now also telling that csrf token not valid
then how can i login ? is there any way or suggestion ?

I don’t think you can do that. CSRF token protection is there to avoid scammed submissions (logins) which you basically want to achieve.