mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 00:16:04 +00:00
A user's OTP secret could not be changed: "Lost OTP?" and the admin's "Email OTP QR code" both send the same secret again, so a stolen phone kept making valid codes. The user's profile page now has "Reset OTP", which deletes the user's TOTP device; they sign in with the password alone until a new QR code is mailed, which has a new secret. The mailed link now names the device, not the user: a link mailed before a reset shows nothing, not the next device's secret. A new signing salt refuses the links that named a user, whose id may be another user's device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea |
||
|---|---|---|
| .. | ||
| migrations | ||
| templates | ||
| templatetags | ||
| tests | ||
| __init__.py | ||
| apps.py | ||
| auth.py | ||
| checks.py | ||
| forms.py | ||
| lockout.py | ||
| middleware.py | ||
| models.py | ||
| otp.py | ||
| urls.py | ||
| utils.py | ||
| views.py | ||