mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
fix(accounts): the mailed OTP link keeps its token out of the access logs
The link to the OTP QR code carried its signed token in the path, so gunicorn's access log (docker logs, the journal) and nginx's held it: anyone reading them within the hour could open the code and take the TOTP secret. The token is now the URL's fragment, which no request carries; the page posts it (otp_qr.js) and the answer shows the code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
9323d61743
commit
d34b1eb2bf
10 changed files with 50 additions and 15 deletions
Binary file not shown.
|
|
@ -399,11 +399,15 @@ msgstr "2FA Koruması Etkin"
|
|||
msgid "OTP QR Code"
|
||||
msgstr "OTP QR Kodu"
|
||||
|
||||
#: accounts/templates/accounts/otp_qr.html:11
|
||||
#: accounts/templates/accounts/otp_qr.html:12
|
||||
#, python-format
|
||||
msgid "Scan this QR code to get OTP for account '%(user)s'"
|
||||
msgstr "'%(user)s' hesabının OTP kodlarını almak için bu QR kodunu tarayın"
|
||||
|
||||
#: accounts/templates/accounts/otp_qr.html:16
|
||||
msgid "Open the link from the mail to see the OTP QR code."
|
||||
msgstr "OTP QR kodunu görmek için e-postadaki bağlantıyı açın."
|
||||
|
||||
#: accounts/templates/api_token_created.html:4
|
||||
#: accounts/templates/api_token_created.html:5
|
||||
msgid "API token created"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue