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

    [SOLVED]Captive portal in 1 step with QR Code

    Captive Portal
    2
    5
    1.6k
    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
      cordon
      last edited by cordon

      Hello everyone.

      I'm trying to use QR Code to login in CP using vouchers without any user input in cell phone , what come to my mind is: the user scan the QR and the QR has some php url with the voucher and it auto submit the form, that way I can still use the "normal" portal to logins when the user got a notebook.

      I'm new to php and could not get the url thing working =/

      Any ideias ?

      Tks

      1 Reply Last reply Reply Quote 0
      • lexxaiL
        lexxai
        last edited by

        Can you see in browser debugger request that is when user enter vouchers data and try simulate it in GET request.
        like : http://portal/login?vouchers=34244543543
        If it is work then can generate QR code with this url.
        If no, then need rewrite php code that can work with POST and GET request of vouchers information.

        –
        We have what we have. Everything that happens - for the better.

        C 1 Reply Last reply Reply Quote 0
        • C
          cordon @lexxai
          last edited by

          @lexxai I tried it with:
          auth_voucher
          voucher
          id_voucher

          nothing works.

          So I do need to rewrite the code but any ideas how can I auto send the form to pfsense to authenticate the voucher?

          1 Reply Last reply Reply Quote 0
          • lexxaiL
            lexxai
            last edited by lexxai

            @cordon said in Captive portal in 1 step with QR Code:

            I tried it with:

            in browser debugger tested (F12)?

            –
            We have what we have. Everything that happens - for the better.

            C 1 Reply Last reply Reply Quote 0
            • C
              cordon @lexxai
              last edited by

              @lexxai Yes, I've found this site

              https://knobelbecher.net/vouchergenerator/

              It gives you (on the botton of the page) a new index.php that is patched for the QR code.

              got it working just fine Thx

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