Compare commits
2 Commits
6678a5b919
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad1e960e71 | ||
|
|
3eaded1033 |
@@ -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 }
|
||||
|
||||
@@ -13,10 +13,8 @@ Rails.application.routes.draw do
|
||||
post "register", to: "registrations#create"
|
||||
post "heartbeat", to: "heartbeats#create"
|
||||
|
||||
namespace :sms do
|
||||
post "received", to: "sms#received"
|
||||
post "status", to: "sms#status"
|
||||
end
|
||||
post "sms/received", to: "sms#received"
|
||||
post "sms/status", to: "sms#status"
|
||||
end
|
||||
|
||||
# Client application endpoints
|
||||
|
||||
Reference in New Issue
Block a user