Module: TwoFactorAuthentication::Schema

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

Instance Method Summary collapse

Instance Method Details

#otp_secret_keyObject



3
4
5
# File 'lib/two_factor_authentication/schema.rb', line 3

def otp_secret_key
  apply_devise_schema :otp_secret_key, String
end

#second_factor_attempts_countObject



7
8
9
# File 'lib/two_factor_authentication/schema.rb', line 7

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