Browse Source

Merge pull request #4 from VladimirMikhailov/patch-1

need_two_factor_authentication? method should accept request param.
for_activeadmin
Dmitrii Golub 13 years ago
parent
commit
518b92d534
  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)
end
def need_two_factor_authentication?
def need_two_factor_authentication?(request)
true
end

Loading…
Cancel
Save