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

    Captive portal with Demo button option

    Scheduled Pinned Locked Moved Captive Portal
    6 Posts 2 Posters 1.1k 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.
    • N
      NABAMB
      last edited by

      Hi, Sorry if this quetstion is already asked. I have a query, I have a captive portal page which takes username and password and authenticate with Radiusdesk. I also want to integrate an option where I place a button in bottom called "Demo" which passes hidden username "demo" and password "demo" which users would not see but only a demo button and in Radius I create that username and password.

      My current index page is.

      <center>

      Welcome to Raptor Internet Service

      </center>

      <center>

      The Raptor Internet Service provides Wireless Internet access.

      </center>

      <center>![Wifi](captiveportal-img.jpg<br />)</center>

      <center>

      <form action="$PORTAL_ACTION$" method="post">   Username     <br.<br>Password</br.<br></form>

      </center>

      <center>

      Speed Upto 8Mbps ( Rs:400/month )

      Three devices can use same ID

      To purchase contact: 0334-xxxx3

      </center>

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        …. and the question is ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • N
          NABAMB
          last edited by

          Could anyone integrate it in above code for me? I will be so thankful.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            @NABAMB:

            Could anyone integrate it in above code for me? I will be so thankful.

            This means the code has to be changed, not only settings.
            Check out this forum : https://forum.pfsense.org/index.php?board=34.0

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • N
              NABAMB
              last edited by

              I just need button html code which passes hidden username and password. Or is there other option to bypass users for 1hrs. I know the pass thoruh credit option  but does not want other users to login with their credentials after every hour.

              1 Reply Last reply Reply Quote 0
              • N
                NABAMB
                last edited by

                Thanks. Got thinkgs working. I modified and pasted following.

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