Add InetContainer
with scopes of containing
and contained
(#32802)
This commit is contained in:
parent
df54196a14
commit
bde0f1239a
7 changed files with 18 additions and 6 deletions
|
@ -19,7 +19,7 @@ class SuspiciousSignInDetector
|
|||
end
|
||||
|
||||
def previously_seen_ip?(request)
|
||||
@user.ips.exists?(['ip <<= ?', masked_ip(request)])
|
||||
@user.ips.contained_by(masked_ip(request)).exists?
|
||||
end
|
||||
|
||||
def freshly_signed_up?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue