Skip to content
dk
← All projects

Login-Register-System-with-Flask-SQLite

Secure Login & Register System built with Flask + SQLite featuring authentication, password hashing, sessions, and protected dashboards for real-world web apps.

Python10 forks0 open issues & PRsMITupdated 27d ago
authenticationbackenddatabaseflaskfullstacklogin-systempythonregister-systemsecuritysessionssqliteweb-development
Stars
1
Forks
0
Created
Feb 3, 2026
Last push
Sep 9, 2026
Last commit
Sep 9, 2026
Contributors
0

README

dsk-dev-ai/Login-Register-System-with-Flask-SQLite

🔐 Login & Register System (Flask + SQL)

CI License: MIT

A modern authentication system built with Flask and SQLite.

This project demonstrates how real websites handle:

  • User registration
  • Secure login
  • Password hashing
  • Sessions
  • Protected dashboard
  • SQL database storage

Perfect foundation for SaaS apps, dashboards, admin panels, and AI tools with accounts.


✨ Features

✅ Register new users
✅ Login authentication
✅ Password hashing (secure)
✅ SQLite database
✅ Session management
✅ Protected routes
✅ Logout system
✅ Modern responsive UI


🛠 Tech Stack

  • Python
  • Flask
  • SQLite
  • HTML/CSS
  • Werkzeug security

📸 Screenshot

1 2 3 4 5

▶️ Run Locally

1. Install dependencies

pip install flask werkzeug
  1. Start server
python app.py
  1. Open browser http://127.0.0.1:5000

🧪 Tests

pip install -r requirements-dev.txt
python -m pytest -q

Tests cover registration (validation, persistence, duplicate user), login (valid/invalid credentials, 5-attempt lockout, attempt reset on success), session-protected dashboard, logout, and guest redirects, using an isolated SQLite database per run. CI runs the suite on every push.


🧠 What I Learned

  • Building authentication systems
  • Working with SQL databases
  • Password hashing & security
  • Sessions & cookies
  • Backend development with Flask

👨‍💻 Author

Darshan Kachare
AI Developer • SaaS Builder • Automation Tools

Related projects

Turn any codebase into beautiful architecture diagrams — one command, no AI, no server, runs on any laptop. Zero dependencies, pure Python, agent-friendly (Cursor, Claude Code, Codex, OpenCode).

ai-agentsarchitecture-diagramcli
Python1mo ago

177 merged pull requests across 19 repositories · data generated Oct 7, 2026