Extending the captive portal

Started by yut.sin1301, October 07, 2017, 08:54:42 PM

Previous topic - Next topic
October 07, 2017, 08:54:42 PM Last Edit: October 08, 2017, 09:19:50 AM by yut.sin1301
Hi there, My name is Jeen
first of all thanks for this great project!
We are planning to use the OPNsense captive-portal in our guest-wlan, but have some special requirements.
When people want to go online, they have to provide their first name, surname and email-address and also accept our terms and conditions. There is no need to validate these information, just enter, accept, click OK and they should be online แทงบอลสเต็ป
At the same time, these information and the corresponding mac-address has to be logged.

Is there a possibility to extend the existing captive portal this way?


Thank you

Hi Jeen,

The extension sounds possible, but we don't have a way to log arbitrary information and the MAC address directly as far as I know, so they would have to be added.

The info sounds easiest: you can create your own template, submit the extended form data via JavaScript with the username / password as a concatenated "comment" field which would be pushed to the log if not empty. It's accessible from the log and we don't burden the database this way.

What do you think?


Cheers,
Franco