How mithra-c/secure-login works
This is a small Flask account-authentication web app: users register, log in, encounter failed-attempt account locking, view a session-protected dashboard, and log out. The app handles requests and authentication decisions; SQLite stores user credentials and failed-attempt counts. A separate script creates the users table. The README documents the screens and lockout behavior, but provides no implementation details for the templates or stylesheet; their wiring is therefore not inferred.
Main entry points: app.py Flask routes · database.py Schema initializer · register.html Registration page · login.html Login page
Components 9
Web workflow
- Flask routes
app.py - Registration page
templates/register.html - Login page
templates/login.html - Dashboard page
templates/dashboard.html
Account logic
- Credential checks
app.py - Session access
app.py
SQLite storage
- Schema initializer
database.py - Users database
Other components
- Browser user
Connections 8
- Browser user → Flask routes: submits requests
app.py - Flask routes → Registration page: renders
app.py - Flask routes → Login page: renders
app.py - Flask routes → Dashboard page: renders
app.py - Flask routes → Credential checks: checks credentials
app.py - Flask routes → Session access: manages session
app.py - Flask routes → Users database: reads and updates
app.py - Schema initializer → Users database: creates schema
database.py