Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Customizing status_captiveportal.php

    Scheduled Pinned Locked Moved Captive Portal
    1 Posts 1 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dtrance
      last edited by

      I am using this captive portal for public wifi access, which would require accepting terms of agreement, name and company name.  No authentication back end.  The form is simple enough to create.

      I would like to see two additional columns on the status page, hostname and company name.  I managed to get the name (ie John Smith) to show in the status page using the auth_user text field from this post.
      http://forum.pfsense.org/index.php?topic=44780.0

      From what I can gather, the status page is fetching the values from /var/db/captiveportal.db

      Where is the mechanism that writes to that?  I am thinking I need to shove the hostname and company name (from form field) in the db so that I can display it on the status page.  I presume the best place to find the hostname is in the DHCP log.

      Any pointers are greatly appreciate. TIA

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.