about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-10-24 00:07:09 -0500
committerFire Demon <firedemon@creature.cafe>2020-10-24 00:07:09 -0500
commit747170006b273e17cb94f7cb938d831fb4a05c7c (patch)
tree377a87d339bf7c9f296094faa1cd05e235e23a64
parenta9989bd53cd7512285b74a966568ef3333657ebf (diff)
Allow 12 weeks to pass between last sign-in before verifying account
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 4ec5a5d8e..d887f44fe 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -183,7 +183,7 @@ 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 < 12.weeks.ago && !recent_ip?(ip)
   end
 
   def functional?