If you have a look at the standard login.html file that is on a Mikrotik with an active hotspot you will see this line of code:
You have this link on a button, word, picture, whatever you want. This tells the Mikrotik to log the user in, using the trial user log in method of the hotspot.
So to get it working you need the following:
- A hotspot setup with the trial user log in method enabled
- A login.html file with that line of code somewhere to let the user log in
- Those two scripts setup
When they user connects to the wifi the hotspot serves them the login.html. They then click on the link, attached to a button or image etc. It then passes that to the Mikrotik and creates an active user as in the image below.
You do not have the required permissions to view the files attached to this post.