Open kevinmichaelchen opened 6 years ago
Don't transmit more than N SMS messages to personId within the last M minutes.
N
personId
M
The table needs to maintain a transmittedAt timestamp.
transmittedAt
N and M should be configurable via env vars, with sane defaults.
10 codes in the last 5 minutes is too much.
Don't transmit more than
N
SMS messages topersonId
within the lastM
minutes.The table needs to maintain a
transmittedAt
timestamp.N
andM
should be configurable via env vars, with sane defaults.10 codes in the last 5 minutes is too much.