Module: TwoFactorAuthentication::Schema

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

Instance Method Summary collapse

Instance Method Details

#encrypted_otp_secret_keyObject



7
8
9
# File 'lib/two_factor_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/two_factor_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/two_factor_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/two_factor_authentication/schema.rb', line 3

def second_factor_attempts_count
  apply_devise_schema :second_factor_attempts_count, Integer, :default => 0
end