merge phonevalidation with master

This commit is contained in:
Kyle Drake 2023-11-10 13:34:33 -06:00
commit aad6546631
14 changed files with 256 additions and 2 deletions

View file

@ -167,6 +167,9 @@ class Site < Sequel::Model
BLACK_BOX_WAIT_TIME = 10.seconds
MAX_DISPLAY_FOLLOWS = 56*3
PHONE_VERIFICATION_EXPIRATION_TIME = 10.minutes
PHONE_VERIFICATION_LOCKOUT_ATTEMPTS = 3
many_to_many :tags
one_to_many :profile_comments
@ -1789,6 +1792,11 @@ class Site < Sequel::Model
end
end
def phone_verification_needed?
return true if phone_verification_required && !phone_verified
false
end
private
def store_file(path, uploaded, opts={})