Browse Source

temporarily disable security code email

closed-social-v3
TA 3 years ago
parent
commit
50101ad5f2
1 changed files with 2 additions and 1 deletions
  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