Browse Source

Misc renames for otp secret key.

master
Matt Mueller 11 years ago
parent
commit
3e501a30b2
  1. 9
      lib/two_factor_authentication.rb
  2. 4
      lib/two_factor_authentication/schema.rb

9
lib/two_factor_authentication.rb

@ -1,13 +1,12 @@
require 'two_factor_authentication/version'
require 'randexp'
require 'devise'
require 'digest'
require 'active_support/concern'
require "active_model"
require "active_support/core_ext/class/attribute_accessors"
require "cgi"
require "rotp"
module Devise
mattr_accessor :login_code_random_pattern
@@login_code_random_pattern = /\w+/
mattr_accessor :max_login_attempts
@@max_login_attempts = 3
end

4
lib/two_factor_authentication/schema.rb

@ -1,7 +1,7 @@
module TwoFactorAuthentication
module Schema
def second_factor_pass_code
apply_devise_schema :second_factor_pass_code, String, :limit => 32
def otp_secret_key
apply_devise_schema :otp_secret_key, String
end
def second_factor_attempts_count

Loading…
Cancel
Save