Module: ActiveModel::OneTimePassword

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_model/one_time_password.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethodsOnActivation

Constant Summary collapse

OTP_DEFAULT_COLUMN_NAME =
'otp_secret_key'.freeze
OTP_DEFAULT_COUNTER_COLUMN_NAME =
'otp_counter'.freeze
OTP_DEFAULT_BACKUP_CODES_COLUMN_NAME =
'otp_backup_codes'.freeze
OTP_DEFAULT_DIGITS =
6
OTP_DEFAULT_BACKUP_CODES_COUNT =
12
OTP_COUNTER_ENABLED_BY_DEFAULT =
false
OTP_BACKUP_CODES_ENABLED_BY_DEFAULT =
false