From b4e8138b5a674ee1203961d90e1ed00b835d4e83 Mon Sep 17 00:00:00 2001 From: Matt Mueller Date: Thu, 20 Feb 2014 07:57:59 -0600 Subject: [PATCH] Only max_login_attempts is now configurable. --- .../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 450c58c..8b9cbca 100644 --- a/lib/two_factor_authentication/models/two_factor_authenticatable.rb +++ b/lib/two_factor_authentication/models/two_factor_authenticatable.rb @@ -20,7 +20,7 @@ module Devise end end end - ::Devise::Models.config(self, :login_code_random_pattern, :max_login_attempts) + ::Devise::Models.config(self, :max_login_attempts) end module InstanceMethodsOnActivation