(% 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
(% else if check.bad_name %)
  • The name you provided was empty or blank. Please provide a proper name
(% else if let Some(name) = check.taken_name %)
  • The name "((name))" is either invalid or already taken, Please pick a different one
(% endif %)
(% if check.broken_app %) (% else %) (% endif %)