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.
|
|
@ -396,11 +396,15 @@ msgstr "双因素保护已启用"
|
|||
msgid "OTP QR Code"
|
||||
msgstr "OTP 二维码"
|
||||
|
||||
#: 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”的 OTP"
|
||||
|
||||
#: accounts/templates/accounts/otp_qr.html:16
|
||||
msgid "Open the link from the mail to see the OTP QR code."
|
||||
msgstr "请打开邮件中的链接以查看 OTP 二维码。"
|
||||
|
||||
#: 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