Gents,
Pulling my hair trying to get this to work. I have a decent networking background but beginner programming/language experience.
The idea is to have a custom field to the hotspot login.html page which lets you choose for how many days you want to use the internet for and expires after till you enter your password again and approve the time.
Now adding a custom field “Allow Access For” below the password field was a piece of cake. The drop down menu next to it has options like 1 week, 2 week, 3 weeks etc etc which after the user has selected writes the data to the mikrotik (lets says cookie expiry time for instance depending on what the user chooses).
I just need someone to point me at the direction how a custom field in the login.html page can modify the router configuration as soon as the user logs in. i already looked at routeros_api.php and a few other things which don’t make sense to me. I hope there is a simple way to do this.
I am going to bed now as i have a headache researching all day on how to do it?
Your valuable suggestions will be much appreciated.