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

    Create a user for captive portal

    Scheduled Pinned Locked Moved Captive Portal
    1 Posts 1 Posters 2.4k 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.
    • G
      guerragozu
      last edited by

      Hi ! I need to add/create a new account user to authenticate over captive portal.
      I know that this is easy to do whit GUI, but I need to make it without enter on the web panel.
      My goal is to create automatically an user local account directly by the page of Captive Portal with many html forms where the users insert their credentials (name and surname) with a username like a valid cellular number.
      The password will be generated by a my php script and another function will send a sms whit password to user; No problem for this…
      Maybe I can modify the "services_captiveportal_users_edit.php" page...

      
      <form action="services_captiveportal_users_edit.php" method="post" name="iform" id="iform">
      
        Username |  
      
      		 |		
        Password |  
      
      		 (confirmation)		 |		
        Full name |  
      
      		User's full name, for your own information only |		
        Expiration date |  
      
      		[![Pick a date](/themes/nervecenter/images/icons/icon_cal.gif)](javascript:NewCal('expirationdate','mmddyyyy')) 
      
      		Leave blank if the account shouldn't expire, otherwise enter the expiration date in the following format: mm/dd/yyyy |		
          |  
      
      			   |	
      
       </form>
      
      

      how can I create a user with the data I want?  Can you make me an example ?  :P

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