|
@ -200,7 +200,8 @@ class User < ApplicationRecord |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def suspicious_sign_in?(ip) |
|
|
def suspicious_sign_in?(ip) |
|
|
!otp_required_for_login? && current_sign_in_at.present? && current_sign_in_at < 2.weeks.ago && !recent_ip?(ip) |
|
|
|
|
|
|
|
|
# !otp_required_for_login? && current_sign_in_at.present? && current_sign_in_at < 2.weeks.ago && !recent_ip?(ip) |
|
|
|
|
|
false |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def functional? |
|
|
def functional? |
|
|