Update README.md

This commit is contained in:
Nasir Hafeez
2020-10-05 09:34:47 +05:00
committed by GitHub
parent 4197423a82
commit 6409eb017f

View File

@@ -5,3 +5,22 @@ This is an example of a PHP based external captive portal for Mikrotik. The code
https://wiki.mikrotik.com/wiki/HotSpot_external_login_page
```
This code will authorize the user with the username `admin` and a blank password.
The router redirecting the user uses the following `POST` parameters. Being `POST` the parameters are not displayed in the URL.
```
<form name="redirect" action="https://example.com" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="hidden" name="username" value="$(username)">
<input type="hidden" name="link-login" value="$(link-login)">
<input type="hidden" name="link-orig" value="$(link-orig)">
<input type="hidden" name="error" value="$(error)">
<input type="hidden" name="chap-id" value="$(chap-id)">
<input type="hidden" name="chap-challenge" value="$(chap-challenge)">
<input type="hidden" name="link-login-only" value="$(link-login-only)">
<input type="hidden" name="link-orig-esc" value="$(link-orig-esc)">
<input type="hidden" name="mac-esc" value="$(mac-esc)">
<input type="submit" value="continue">
</form>
```