Module: DeviseXfactorAuthentication::Schema

Included in:
Orm::ActiveRecord::Schema
Defined in:
lib/devise_xfactor_authentication/schema.rb

Instance Method Summary collapse

Instance Method Details

#direct_otpObject



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_atObject



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_keyObject



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_ivObject



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_saltObject



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_countObject



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_timestampObject



27
28
29
# File 'lib/devise_xfactor_authentication/schema.rb', line 27

def totp_timestamp
  apply_devise_schema :totp_timestamp, Timestamp
end

#uses_two_factorObject



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