Skip to content

Commit 43be3c2

Browse files
fixup! test: add two-factor test infrastructure
1 parent ef215e0 commit 43be3c2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/rails_app/config/initializers/test_two_factor.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ module Devise
2121
module Strategies
2222
class TestOtp < Devise::Strategies::TwoFactor
2323
def valid?
24-
params[:otp_attempt].present? &&
25-
session[:devise_two_factor_resource_id].present?
24+
super && params[:otp_attempt].present?
2625
end
2726

2827
def verify_two_factor!(resource)

0 commit comments

Comments
 (0)