I am already outsite the RouterOS, i have the login system working on my webserver perfectly. But still the user has to login to everything separately.
The Mikrotik Hotspot login form is in one file (login.php), and the RadiusManager user login form in another file (user.php)…
So what i want is to use only one file to allow the user to login on the RadiusManager system (which allows the user to change account password, account details…) and at the same time when the from is sent have it also sent to mikrotik, so that the user can browse the internet…
Try the same Javascript submit trick as the login.html does, except include a “target=_new” parameter on the login.php page. It will send the login response to a new browser window.
That is like mine, except it submits the form again, and the result ends up on the same browser window. I would use frames, and the form would have “target=frame2”, but that is just because I live here part-time.
I’m curious if you were trying to do the same thing I am trying to do. I want my routeros login page to also log into my intranet site at the same time…hopfully using the same form and submit button, so that they get authorized the hotspot and the intranet site at the same time. I’m wondering if you found a solution to your issue? if so I’d love to see your code…