Module: DeviseXfactorAuthentication::Schema
- Included in:
- Orm::ActiveRecord::Schema
- Defined in:
- lib/devise_xfactor_authentication/schema.rb
Instance Method Summary collapse
- #direct_otp ⇒ Object
- #direct_otp_sent_at ⇒ Object
- #encrypted_otp_secret_key ⇒ Object
- #encrypted_otp_secret_key_iv ⇒ Object
- #encrypted_otp_secret_key_salt ⇒ Object
- #second_factor_attempts_count ⇒ Object
- #totp_timestamp ⇒ Object
- #uses_two_factor ⇒ Object
Instance Method Details
#direct_otp ⇒ Object
19 20 21 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 19 def direct_otp apply_devise_schema :direct_otp, String end |
#direct_otp_sent_at ⇒ Object
23 24 25 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 23 def direct_otp_sent_at apply_devise_schema :direct_otp_sent_at, DateTime end |
#encrypted_otp_secret_key ⇒ Object
7 8 9 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 7 def encrypted_otp_secret_key apply_devise_schema :encrypted_otp_secret_key, String end |
#encrypted_otp_secret_key_iv ⇒ Object
11 12 13 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 11 def encrypted_otp_secret_key_iv apply_devise_schema :encrypted_otp_secret_key_iv, String end |
#encrypted_otp_secret_key_salt ⇒ Object
15 16 17 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 15 def encrypted_otp_secret_key_salt apply_devise_schema :encrypted_otp_secret_key_salt, String end |
#second_factor_attempts_count ⇒ Object
3 4 5 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 3 def second_factor_attempts_count apply_devise_schema :second_factor_attempts_count, Integer, :default => 0 end |
#totp_timestamp ⇒ Object
27 28 29 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 27 def apply_devise_schema :totp_timestamp, Timestamp end |
#uses_two_factor ⇒ Object
31 32 33 |
# File 'lib/devise_xfactor_authentication/schema.rb', line 31 def uses_two_factor apply_devise_schema :uses_two_factor, Boolean, :default => true end |