Files
ubicloud/views/components/rodauth/otp_auth_code_field.erb
Enes Cakir aceab52dca Configure OTP authentication in rodauth
OTP is one of the most popular 2FA methods. We use the `otp` plugin from
rodauth for this purpose.

The `otp_setup_*` configurations are related to OTP setup, while the
`otp_disable_*` configurations are associated with disabling OTP.

The `otp_auth_*` configurations are used for user authentication via
OTP.

I replaced 'TOPT' with 'One-Time Password' in the UI, as I believe it's
more user-friendly.
2023-12-09 14:04:47 +03:00

14 lines
284 B
Plaintext

<%== render(
"components/form/text",
locals: {
name: rodauth.otp_auth_param,
label: "#{rodauth.otp_auth_label}#{rodauth.input_field_label_suffix}",
value: "",
attributes: {
required: true,
autocomplete: "off",
inputmode: "numeric"
}
}
) %>