Browse Source

Merge pull request #55 from gkopylov/move_require_rotp

Move require rotp library to the file where it is used
master
Dmitrii Golub 9 years ago
parent
commit
6c4927dd6b
  1. 1
      lib/two_factor_authentication.rb
  2. 2
      lib/two_factor_authentication/models/two_factor_authenticatable.rb

1
lib/two_factor_authentication.rb

@ -5,7 +5,6 @@ require "active_model"
require "active_record" require "active_record"
require "active_support/core_ext/class/attribute_accessors" require "active_support/core_ext/class/attribute_accessors"
require "cgi" require "cgi"
require "rotp"
module Devise module Devise
mattr_accessor :max_login_attempts mattr_accessor :max_login_attempts

2
lib/two_factor_authentication/models/two_factor_authenticatable.rb

@ -1,4 +1,6 @@
require 'two_factor_authentication/hooks/two_factor_authenticatable' require 'two_factor_authentication/hooks/two_factor_authenticatable'
require 'rotp'
module Devise module Devise
module Models module Models
module TwoFactorAuthenticatable module TwoFactorAuthenticatable

Loading…
Cancel
Save