Hi,
I am trying to create a HotSpot wit ha mikrotik 951 2n. The client needs to have a slideshow of pictures as advertising on the front page with a small button on the upper left corner that is a gate to the open internet. Seems easy, but he doesnt want users to have to input login credentials themselves. He wants the button (Continue to Internet) to do that for them so its easier to do from phone/tables and etc.This means I am using a custom made login.html which currently looks like this (for the button part):
<form name="sendin" action="$(link-login-only)" method="post">
<input type="hidden" name="username" />
<input type="hidden" name="password" />
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="false" />
</form>
<script type="text/javascript" src="/md5.js"></script>
<script type="text/javascript">
<!--
function doLogin() {
document.sendin.username.value = document.login.username.value;
document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
document.sendin.submit();
return false;
}
//-->
</script>
<form name="login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit="return doLogin()" $(endif)>
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="false" />
<input type="hidden" name="username" value="guest"/>
<input type="hidden" name="password" value="guest"/>
<input type="submit" value="Continue to Internet" />
</form>
Thank you kind person!