A secure and robust authentication system built with PHP.
- User Registration
- User Login/Logout
- Password Hashing
- Session Management
- Input Validation
- SQL Injection Prevention
- XSS Prevention
ABANTIKA/secure-auth-system/
│
├── config/
│ └── config.php
│
├── controllers/
│ ├── AuthController.php
│ └── BaseController.php
│
├── models/
│ └── User.php
│
├── views/
│ ├── auth/
│ │ ├── login.php
│ │ ├── register.php
│ │ └── dashboard.php
│ └── partials/
│ ├── header.php
│ └── footer.php
│
├── public/
│ ├── css/
│ │ └── style.css
│ ├── js/
│ │ └── script.js
│ ├── index.php
│ └── .htaccess
│
├── core/
│ ├── Router.php
│ ├── Session.php
│ └── Validator.php
│
├── logs/
│ └── error.log
│
├── .env
└── README.md
- Clone the repository
- Configure your database settings in
.envfile - Import the database schema
- Update the
config/config.phpfile with your database credentials - Set appropriate permissions for the
logsdirectory
Navigate to the public directory in your browser to access the application.
- Passwords are hashed using PHP's
password_hash()function - Prepared statements are used to prevent SQL injection
- Input validation and sanitization
- CSRF protection (to be implemented)
- Session security measures
- Fork it
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
This project is licensed under the MIT License.