Skip to content

TOTP_Profile

matdave edited this page Oct 11, 2022 · 1 revision

Sample Profile Page

[[!TwilioTOTPqr]]

[[!+twilio.qr:ne=``:then=`
    <img src="[[!+twilio.qr]]" />
    <p>Secret [[!+twilio.secret]]</p>
    [[!+twilio.status:is=`unverified`:then=`
        <p><a href="[[~5]]"><strong>Verify 2FA Code Before Next Login</strong></a></p> <!-- link to challenge page -->
    `:else=``]]
    <p><a href="[[~6]]">Refresh 2FA</a><br /> <!-- link to create / refresh page -->
    <a href="[[~6?status=`disable_totp`]]">Disable 2FA</a></p>
`:else=`
    <a href="[[~6]]">Enable 2FA</a>
`]]