From 8da6ada802a344773c721d102cd1c4a54db19383 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Fri, 13 Jul 2012 17:26:49 +0400 Subject: [PATCH] need_two_factor_authentication? method should accept request param. --- .../models/two_factor_authenticatable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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