Suspicious sign in detector: Use correct constant name.

Bruh.
This commit is contained in:
Jeremy Kescher 2024-05-31 22:29:00 +02:00
parent 3d3d958aba
commit f322057609
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -10,7 +10,7 @@ class SuspiciousSignInDetector
end
def suspicious?(request)
!sufficient_security_measures? && !freshly_signed_up? && !previously_seen_ip?(request) if DISABLE_SUSPICIOUS_SIGN_IN
!sufficient_security_measures? && !freshly_signed_up? && !previously_seen_ip?(request) if ENABLE_SUSPICIOUS_SIGN_IN
end
private