I setup a custom portal page and it's not working as intended and I'm struggling to figure out why. The inital redirect happens when I try to access a website (i.e. google) and this the URL that is displayed in the browser bar:
192.168.1.1:8000/index.php?rediurl=http%3A%2F%2Fwww.google.com%2F
My custom page is displayed, but if I enter my predefined user or a voucher, I get redirected right back to it (instead of to google.com as my example):
192.168.1.1:8000
Here's the relevant form from my custom page, which is named index.php:
<div id="login-box">
<form method="post" action="$PORTAL_ACTION$">
<H1>STEPHENNET NETWORKS</H1>
Please authenticate with username/password given
<br />
<br />
<div id="login-box-name" style="margin-top:20px;">username:</div><div id="login-box-field" style="margin-top:20px;"><input name="auth_user" class="form-login" title="Username" value="" size="30" maxlength="2048" /></div>
<div id="login-box-name">password:</div><div id="login-box-field"><input name="auth_pass" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" /></div>
<div id="login-box-name">voucher code:</div><div id="login-box-field"><input name="auth_voucher" type="text" class="form-login" title="voucher" value="" size="30" maxlength="2048" /></div>
<br />
<br />
<input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
<input name="accept" type="image" src="captiveportal-login-btn.png" width="103" height="42" style="margin-left:90px;" /></a>
My end goal is to be able to use vouchers and username/passwords, and neither are working. Don't know if there's a mistake in my HTML or not, but I can't seem to put a finger on it.....