diff --git a/lib/two_factor_authentication/models/two_factor_authenticatable.rb b/lib/two_factor_authentication/models/two_factor_authenticatable.rb index 3ccb2d4..29b1dfe 100644 --- a/lib/two_factor_authentication/models/two_factor_authenticatable.rb +++ b/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