Skip to content

Commit

Permalink
Fix running system tests for OTP challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
strzibny authored Jun 25, 2024
1 parent 0269aae commit 123c544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise/strategies/database_authenticatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def otp_challenge_required_on?(resource)
end

def otp_challenge_url
if Rails.env.development?
if Rails.env.development? || Rails.env.test?
host = "#{request.host}:#{request.port}"
else
host = "#{request.host}"
Expand Down

0 comments on commit 123c544

Please sign in to comment.