Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Authentication System

This is a simple authentication system built using Flask and Bootstrap. It includes user login, logout, a dashboard, and a home page.

Features

  • User authentication (login/logout)
  • Dashboard page (accessible only to logged-in users)
  • Home page (accessible to all)
  • Session-based authentication management
  • Security of passwords stored in the form of password hashing
  • Facility of changing password when user forgets their previous password
  • Frontend styled with Bootstrap

Technologies Used

  • Flask (Python web framework)
  • Flask-Login (User session management)
  • Flask-WTF (Forms handling)
  • SQLite3 (Database)
  • Bootstrap (Frontend styling)

Installation

Prerequisites

Ensure you have Python installed (preferably Python 3.8 or later).

Steps

  1. Clone the repository:
    git clone https://github.com/yourusername/flask-auth-system.git
    cd flask-auth-system
  2. Create a virtual environment and activate it:
    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install dependencies:
    pip install -r requirements.txt
  4. Initialize the database:
    flask db init
    flask db migrate -m "Initial migration."
    flask db upgrade
  5. Run the application:
    flask run
  6. Open your browser and go to http://127.0.0.1:5000/

Project Structure

flask-auth-system/
│-- app/
│   │-- static/ (CSS, JS, images)
│   │-- templates/ (HTML templates)
│-- app.py (Entry point to run the app)
|-- database.db (Database storing user data)
└-- README.md (Project documentation)

Usage

  • Visit the home page (/)
  • Register (/signup)
  • Change your password (/forgot)
  • Login using your credentials (/login)
  • Access the dashboard (/dashboard)
  • Logout (/logout)

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages