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

    Login with only a password ? / Excluding a website of the CP ?

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 3 Posters 2.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.
    • W
      weezo
      last edited by

      Hi everybody.

      I'm new to this whole captive portal thing and I have a question regarding the login page.

      Ive setted pfSense in a hotel and I would like people to only have to enter a password in a field instead of the username / password.

      Ive tried to set the username field in my login page hidden with the default value of the only username setted but it's not working…

      Here is my code :

      <form method="post" action="$PORTAL_ACTION$">
      Username :

      Password :

      </form>

      Can someoen tell me what i’m doing wrong ?
      I would also like to excluse some site of the captive portal, like they can browse the hotel website even if they don’t have the password (there is 2-3 hotels around mine and they might catch the wireless signal, so they would be able to browse my hotel website for  next time they’re in town) Is that possible ?

      Thanks a lot,

      1 Reply Last reply Reply Quote 0
      • B
        blak111
        last edited by

        That should work. Check your system logs to see if the authentication is failing.
        To allow websites, use the Allowed IP addresses page.

        In your code, you can remove "Username:" from there so it doesn't show up on the page at all.

        
        <form method="post" action="$PORTAL_ACTION$">
        
        Password : 
        
        </form>
        
        
        1 Reply Last reply Reply Quote 0
        • W
          weezo
          last edited by

          Yeah I know it should work, but it doesn't.

          I'm always redirected to the error page. Ill try to check the logs and post them here.

          1 Reply Last reply Reply Quote 0
          • L
            LabAye
            last edited by

            Maybe your browser have some problems . Or maybe the connection of yours have some problems too.


            private labeling | SEO-SEM Services

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