News: This forum is now permanently frozen.
Pages: [1]
Topic: Voucher bug, with using vouchers one can click continue with no voucher.  (Read 355 times)
« on: December 18, 2014, 07:02:13 »
kdes *
Posts: 3

Good Day

When using the Captive Portal feature and vouchers. The user can simply click continue without putting in a voucher code. The user then gets internet access without even using a voucher. Which results in the voucher feature being useless.

So for example.
You can have username and password but leave the voucher field blank.

Im not sure now if this is a bug. Because if you want to use only vouchers you can change your page to have just the voucher field and hide the rest. Keeping local authentication enabled.

So for example;

<html>

<form method="post" action="$PORTAL_ACTION$">
   <input name="auth_user" type="hidden">
   <input name="auth_pass" type="hidden">
   Voucher:<input name="auth_voucher" type="text">
   <input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
   <input name="accept" type="submit" value="Continue">
</form>

</html>

So i guess its up to the admin to decide if they want to use only usernames and passwords, or vouchers. But you cant run both, which the more i think about it the more it makes sense because why would you want to run all 3.
« Last Edit: December 18, 2014, 15:20:31 by kdes »
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines