(% if let Some(TotpInit with { secret, qr_code_svg, steps, digits, algo, uri }) = totp_init %)
((qr_code_svg|safe))
((uri|safe))

TOTP details

(% endif %)
(% if check.broken_app %)
  • Your authenticator appears to be implemented in a way that uses SHA1, rather than SHA256. Are you sure you want to proceed? If you want to try with a new authenticator, enter a new code.
(% else if check.wrong_code %)
  • Incorrect TOTP code - Please try again
(% endif %)
(% if check.broken_app %) (% else %) (% endif %)