Browse Source

need_two_factor_authentication? method should accept request param.

for_activeadmin
Vladimir 13 years ago
parent
commit
8da6ada802
  1. 2
      lib/two_factor_authentication/models/two_factor_authenticatable.rb

2
lib/two_factor_authentication/models/two_factor_authenticatable.rb

@ -8,7 +8,7 @@ module Devise
::Devise::Models.config(self, :login_code_random_pattern, :max_login_attempts) ::Devise::Models.config(self, :login_code_random_pattern, :max_login_attempts)
end end
def need_two_factor_authentication? def need_two_factor_authentication?(request)
true true
end end

Loading…
Cancel
Save