Skip to content

Antara2808/secure-auth-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure Authentication System

A secure and robust authentication system built with PHP.

Features

  • User Registration
  • User Login/Logout
  • Password Hashing
  • Session Management
  • Input Validation
  • SQL Injection Prevention
  • XSS Prevention

File Structure

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

Installation

  1. Clone the repository
  2. Configure your database settings in .env file
  3. Import the database schema
  4. Update the config/config.php file with your database credentials
  5. Set appropriate permissions for the logs directory

Usage

Navigate to the public directory in your browser to access the application.

Security Features

  • 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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published