Giter Site home page Giter Site logo

unifi_hotspot_portal_php's Introduction

Unifi Hotspot Portal with php and MySQL

Hotspot portal for unifi ubiquiti wireless guest network.

Alow to easy create a Unifi Hotspot Page to authenticate with your custom method, and permit user to navitage trought the wireless network.

Customization

This sample have a SimpleMySqlCustomAuth class that implement the CustomAuth interface, with authBox() and authCheck() methods. You can copy that file to create your own CustomAuth class.

Developers

Created by Tiago Gouvêa and Bruno Caldas

unifi_hotspot_portal_php's People

Contributors

tiagogouvea avatar

Stargazers

Bryan "BJ" Hoffpauir avatar

Watchers

James Cloos avatar  avatar Bruno Caldas avatar  avatar

Forkers

beejhuff

unifi_hotspot_portal_php's Issues

SimpleMySqlCustomAuth

  • Implements CustomAuth interface
  • Have config to include some css and js files to index header tag
  • Have config data to connect to a MySql server
  • The authBox() method return a form with Login and Password field, and a Submit button
  • The authCheck() receives the $_POST, validate the input data, and if all ok try to find the user on database
  • If a user has found and the password are ok, it return true
  • If not, it return some error message to be displayed

Basic requirements

Configuration file options:

  • CustomAuth class
  • URL to redirect after successful login

CustomAuth class:
Class to write html portions and check authentication;

  • Must have authBox() method that returns the authentication box;
  • Must have authCheck() that receive $_POST and return if the required user can login or not

Interface:

  • It must use Material Design Lite
  • The middle content (authBox) will be called from the CustomAuth class, authBox()

Readme:
Step by Step instructions to install the hotspot page, mysql database, how to alter config, the CustomAuth explanation, and how to run the page

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.