I've custom portal in pfSense CP. If try to access via URL (eg. http://pfsense.com/index.php?zone=myzone&voucher=XXXXX&accept=continue ) nothing goes as expect, is only showed the login page (customized with jquery mobile), this is my custom page html:
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Accesso alla rete ANM</title>
<link rel="stylesheet" href="captiveportal-jquery.mobile-1.4.5.min.css" />
<script src="captiveportal-jquery-1.11.1.min.js"></script>
<script src="captiveportal-jquery.mobile-1.4.5.min.js"></script>
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<style>
.mainDiv{
margin: auto;
padding: 5px;
border-top: 1px solid black;
border-left: 1px solid black;
border-right: 2px solid black;
border-bottom: 2px solid black;
border-radius: 10px;
}
.login-p{
margin: auto;
padding: 5px;
text-align: center;
}
.login-error{
color: red;
font-weight: bold;
}
</style>
<body>
<div class="mainDiv">
<form method="post" action="$PORTAL_ACTION$" class="login" data-ajax="false">
<table><tr><td><img src="captiveportal-LogoFirma.png" width="50%"/></td><td><b>Autenticazione</b></td></tr></table>
<p class="login-p">Inserire Utente/ Password o Voucher</p>
<input type="text" data-role="input" name="auth_user" placeholder="Username" >
<input type="password" data-role="input" name="auth_pass" placeholder="Password">
<p class="login-p">Oppure</p>
<input type="text" data-role="input" name="auth_voucher" placeholder="Codice Voucher" >
<input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
<input name="zone" type="hidden" value="$PORTAL_ZONE$">
<input type="submit" name="accept" value="Continua" class="login-submit">
<p class="footer">2023 A.N.M. Azienda Napoletana Mobilità </p>
</form>
</div>
</body>
</html>
but if I resume defaul login portal page, all works as expect.
What i'm wrong?
I expecting that captive portal login page URL submit voucher code and grant access to user