Browse Source

Move require rotp library to the file where it is used

master
Kopylov German 9 years ago
parent
commit
49c41a87dc
  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