User Tools

Site Tools


Registration-forms with Terms & Agreement

This is a simple example that requires subscribers to agree to terms & conditions before granting Internet access, it's a small step up from autologin-with-registration-forms with the additional option to enable registration form fields.

Configure a registration form

Free-access billing plan

For this guide we created a free billing plan with bandwidth limits and unlimited recurrence. Head to Billing → Billing Plan to create one of type Free access.

Create the registration form

Create a new registration form by browsing to Layout → Registration forms (use the +-icon in the sub-menu). Since we do not wish for any interaction we only configure the Free-access billing-plan and enable Auto-login. Give the registration form a name and enable Visible for portal use.

Create the captive-portal

Download the custom portal code and head to Layout → Portal Page. Once on the Overview tab use the +-icon in the right hand corner to add a new captive portal. Give it a name and select Custom HSM portal and click Add. After submission you'll be shown the portal settings, upload You should now select the registration form you'd like to use with this portal, enable the registration form you previously created. Make sure the enabled registration form is first in the list. Use the up/down arrows on the left side to move your registration form into first(/top) position. There's nothing else that needs to be changed, the defaults are good.

recipe/register-forms-with-terms.txt · Last modified: 2021/06/03 14:40 (external edit)