How alankurian1015-sudo/secure_app works
SecureAuth is a Flask authentication web app. The main user journey is account registration, password login, optional TOTP verification, then access to a protected dashboard; users can also enroll or disable 2FA and log out. Routes own the workflow, while forms validate input, models define persisted user and audit data, and templates render responses. The route excerpt is partial, so the graph omits uncertain details beyond the shown registration, login, 2FA, dashboard, and logout flows.
Main entry points: routes.py Route handlers · main.py App startup · app.py Flask app configuration · forms.py Input forms
Components 11
Web application
- Flask app configuration
app.py - App startup
main.py
Authentication
- Route handlers
routes.py - Input forms
forms.py
Persistence
- User and audit models
models.py - SQLite database
app.py
User interface
- Page templates
templates
Other components
- Visitor
- Password hashing
- TOTP verification
- QR generation
Connections 11
- Visitor → Route handlers: submits requests
- App startup → Flask app configuration: initializes
- App startup → Route handlers: loads routes
- Route handlers → Input forms: validates input
- Route handlers → User and audit models: queries and updates
- Route handlers → SQLite database: reads and writes
- Flask app configuration → SQLite database: configures database
- Route handlers → Page templates: renders pages
- Route handlers → Password hashing: hashes and checks
- Route handlers → TOTP verification: verifies codes
- Route handlers → QR generation: creates setup QR