How pallavi-gonepalli/social-network-security works
Social-Network-Security is a Flask web application for OTP-assisted registration and face-based login. Its main workflow collects registration details, verifies an email OTP, captures and stores face features, then checks a login capture before granting dashboard access. The sampled code shows face detection and feature comparison, MySQL persistence, email delivery, and session handling. The README provides only the project title, so additional capabilities are not documented; templates and the SQL schema are present in the tree but were not sampled.
Main entry points: main.py Route handlers · face_auth_db.sql User records · main.js Camera client · templates Web pages
Components 12
Web interface
- Web pages
templates - Camera client
static/js/main.js
Flask workflows
- Route handlers
main.py - Registration details
main.py - OTP verification
main.py - Session dashboard
main.py
Face authentication
- Face capture
main.py - Feature comparison
main.py
External services
- User records
face_auth_db.sql - Email service
Other components
- Visitor
- Browser camera
Connections 14
- Visitor → Web pages: visits
- Browser camera → Camera client: provides video
static/js/main.js - Camera client → Route handlers: posts captures
static/js/main.js - Route handlers → Web pages: renders pages
main.py - Route handlers → Registration details: handles signup
main.py - Registration details → User records: checks duplicates
main.py - Registration details → OTP verification: sends code
main.py - OTP verification → Email service: sends email
main.py - Route handlers → Face capture: processes image
main.py - Face capture → User records: stores features
main.py - Route handlers → Feature comparison: checks login face
main.py - Route handlers → User records: loads features
main.py - Feature comparison → Session dashboard: sets login session
main.py - Visitor → Route handlers: requests routes