1 Commits

Author SHA1 Message Date
  TA 50101ad5f2 temporarily disable security code email 3 years ago
1 changed files with 2 additions and 1 deletions
Split View
  1. +2
    -1
      app/models/user.rb

+ 2
- 1
app/models/user.rb View File

@ -200,7 +200,8 @@ class User < ApplicationRecord
end
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
def functional?

Loading…
Cancel
Save