Queue OTP SMS messages for delivery
This commit is contained in:
@@ -54,7 +54,8 @@ class OtpCode < ApplicationRecord
|
||||
sms = SmsMessage.create!(
|
||||
direction: "outbound",
|
||||
phone_number: normalized_phone,
|
||||
message_body: "Your OTP code is: #{otp.code}. Valid for #{expiry_minutes} minutes. Do not share this code."
|
||||
message_body: "Your OTP code is: #{otp.code}. Valid for #{expiry_minutes} minutes. Do not share this code.",
|
||||
status: "queued"
|
||||
)
|
||||
|
||||
{ otp: otp, sms: sms }
|
||||
|
||||
Reference in New Issue
Block a user