How user-wurun/useryanzheng works
This is a small desktop identity-verification app: users can scan a displayed QR code, enter a TOTP code, use a USB key, or verify through a local Flask page; successful checks launch Edge and exit the app. The runtime is concentrated in client.py. The README describes these capabilities, but the source has a wiring issue: the TOTP callback references config although it is local to QR generation. The config contents were not provided, so its configured values are unknown.
Main entry points: client.py Tkinter window · config.ini Settings file
Components 12
Desktop interface
- Tkinter window
client.py - QR generation
client.py - Settings file
config.ini
Verification paths
- TOTP check
client.py - USB key check
client.py - Success handler
client.py
Web flow
- Flask server
client.py - Verification page
client.py
Other components
- User
- QR scanner
- Web browser
- Microsoft Edge
Connections 18
- User → Tkinter window: uses
- Tkinter window → QR generation: generates
- QR generation → Settings file: reads URL
- QR generation → Tkinter window: displays QR
- QR scanner → QR generation: scans
- User → TOTP check: enters code
- Tkinter window → TOTP check: checks code
- User → USB key check: inserts key
- Tkinter window → USB key check: checks key
- Tkinter window → Flask server: starts server
- Web browser → Flask server: requests page
- Flask server → Verification page: serves
- Verification page → Web browser: returns page
- Web browser → Flask server: requests verification
- Flask server → Success handler: dispatches
- TOTP check → Success handler: on valid code
- USB key check → Success handler: on key found
- Success handler → Microsoft Edge: launches