Skip to content
Snippets Groups Projects

Add increasing wait time between phone verification code sends

Merged Eugie Limpin requested to merge el-add-phone-verification-endpoints-delay into master
5 files
+ 101
21
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -4,7 +4,9 @@ module Users
class PhoneNumberValidation < ApplicationRecord
include IgnorableColumns
SMS_SEND_DELAYS = [1.minute, 3.minutes, 5.minutes].freeze
# Subsequent SMS send attempts will be delayed by 1min, 3min, 5min up to a
# maximum of 10 mins
SMS_SEND_DELAYS = [1.minute, 3.minutes, 5.minutes, 10.minutes].freeze
self.primary_key = :user_id
self.table_name = 'user_phone_number_validations'
Loading