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

    Auto Posting of authentication form.

    Captive Portal
    2
    3
    6.1k
    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.
    • C
      candengo
      last edited by

      Is anyone using their own login system and callign then authentication form automatically to force login through captive portal?  Im trying to do this, works fine manually, but when i try and force the http post with etc then it doest work.

      Process is this:

      1. Plain HTML page on captive portal diverts to PHP page.
      2. PHP forces redirect to my central server login pages.
      3. Central server accepts PIN number and creates username / password combo.
      4. Central server diverts to Dologin.php (on the captive portal) to force the Radius authentication.

      As i say, the form on dologin.php is showing, with the correct values entered, and clicking submit button authenticates ok.  I just cant seem to force posting using an onload event.

      Code is attached below.  Any help much appreciated.

      
      <title>Submitting Login - please wait.</title> 
      
      <form id="dologin" name="dologin" method="post" action="<?php echo $_GET[" portal_action"];="" ?="">">
      
      ">
      ">
      
      </form>
      
      
      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        Try:

        1 Reply Last reply Reply Quote 0
        • C
          candengo
          last edited by

          Worked a treat.  Just substituded the submit button for a hidden tag.

          Many thanks.

          Regards

          David

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