[SOLVED]Captive portal in 1 step with QR Code
-
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
-
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. -
@lexxai I tried it with:
auth_voucher
voucher
id_vouchernothing 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?
-
@cordon said in Captive portal in 1 step with QR Code:
I tried it with:
in browser debugger tested (F12)?
-
@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