OPNsense Forum

English Forums => Development and Code Review => Topic started by: yut.sin1301 on October 07, 2017, 08:54:42 pm

Title: Extending the captive portal
Post by: yut.sin1301 on October 07, 2017, 08:54:42 pm
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 แทงบอลสเต็ป (http://www.ufa365.com/แทงบอลสเต็ป/)
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
Title: Re: Extending the captive portal
Post by: franco on October 09, 2017, 10:55:40 pm
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