🚀 Getting Started
Start here to set up and run the authentication system in minutes.
Go to Login
🎨 Frontend
Beautiful, responsive user interface built with jQuery and EasyUI.
Features: 3 login methods, password strength meter, PIN input, responsive design
⚙️ API Endpoints
RESTful JSON endpoints for all authentication operations.
- POST/api/login.php
- POST/api/login-pin.php
- POST/api/register.php
- POST/api/logout.php
- POST/api/set-pin.php
- GET/api/status.php
- GET/api/health-check.php
🗄️ Database
Complete MySQL schema with 4 tables and security features.
Tables: users, devices, sessions, login_attempts
✨ Key Features
Username/Password Login
Device Token (30 days)
PIN Fast Login
Session Management
Rate Limiting
Login Tracking
Secure Cookies
Password Hashing
🔒 Security
Production-grade security implementation.
bcrypt Hashing
SQL Injection Prevention
CSRF Protection
Rate Limiting
Input Validation
Brute Force Protection
HTTPOnly Cookies
Audit Logs
📁 Project Structure
Well-organized, production-ready file structure.
auth_system/
├── backend/
│ ├── api/ (7 endpoints)
│ ├── helpers.php
│ └── session.php
├── public/
│ ├── login.html
│ ├── dashboard.php
│ └── assets/
├── config/
├── database.sql
└── README.md
🩺 System Check
Validate your setup with the health check endpoint.
Verifies PHP version, extensions, database connection, and file integrity.
⚡ Tech Stack
PHP 7.4+
MySQL 5.7+
jQuery
EasyUI
MySQLi
bcrypt