1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<form method="post" class="rodauth" role="form" id="otp-setup-form">
#{rodauth.otp_setup_additional_form_tags}
<input type="hidden" id="otp-key" name="#{rodauth.otp_setup_param}" value="#{rodauth.otp_user_key}" />
#{"<input type=\"hidden\" id=\"otp-hmac-secret\" name=\"#{rodauth.otp_setup_raw_param}\" value=\"#{rodauth.otp_key}\" />" if rodauth.otp_keys_use_hmac?}
#{rodauth.csrf_tag}
<div class="form-group mb-3">
<p>#{rodauth.otp_secret_label}: #{rodauth.otp_user_key}</p>
<p>#{rodauth.otp_provisioning_uri_label}: #{rodauth.otp_provisioning_uri}</p>
</div>
<div class="row">
<div class="col-lg-6 col-lg">
<div class="form-group mb-3">
<p>#{rodauth.otp_qr_code}</p>
</div>
</div>
<div class="col-lg-6 col-lg">
#{rodauth.render('password-field') if rodauth.two_factor_modifications_require_password?}
#{rodauth.render('otp-auth-code-field')}
#{rodauth.button(rodauth.otp_setup_button)}
</div>
</div>
</form>
|