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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_account_page.py | ||
| test_admin_email_otp.py | ||
| test_admin_password.py | ||
| test_api_tokens.py | ||
| test_audit_rows.py | ||
| test_change_password_permission.py | ||
| test_checks.py | ||
| test_email_otp.py | ||
| test_first_login_password.py | ||
| test_ldap_timeouts.py | ||
| test_login_lockout.py | ||
| test_otp_login.py | ||
| test_ssh_keys.py | ||
| test_unique_email.py | ||
| test_utils.py | ||
| test_views.py | ||