Update README.md
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
This is an example of a PHP based external captive portal for Unifi. The code given here can be used to setup a basic captive portal with an HTML login form. The code for authorizing the user is from Art of WiFi's Unifi API client located here:
|
||||
# Unifi External Captive Portal
|
||||
|
||||
This is an example of a PHP based external captive portal for Unifi. The code given here can be used to setup a basic captive portal featuring an HTML login form. The code for authorizing the user is from Art of WiFi's excellent Unifi API client located here:
|
||||
|
||||
https://github.com/Art-of-WiFi/UniFi-API-client
|
||||
|
||||
To run this you also need to install the Unifi API client. The can be done using Composer. Include the following code in your composer.json file:
|
||||
To run this you need to install the Unifi API client. The can be done using Composer. Include the following code in your composer.json file:
|
||||
```
|
||||
{
|
||||
"require": {
|
||||
@@ -10,4 +12,4 @@ To run this you also need to install the Unifi API client. The can be done using
|
||||
}
|
||||
}
|
||||
```
|
||||
This portal will authorize the user for 30 minutes and then redirect the user to Google. In connecting.php you need to enter the correct values for `$site_id`, `$controlleruser`, `$controllerpassword`, `$controllerurl` and `$controllerversion`.
|
||||
This portal will authorize the user for 30 minutes on the Unifi controller and redirect them to Google. In connecting.php you need to enter the correct values for `$site_id`, `$controlleruser`, `$controllerpassword`, `$controllerurl` and `$controllerversion`.
|
||||
|
||||
Reference in New Issue
Block a user