ignore code case. add code 5. refactor send_sms
This commit is contained in:
@@ -62,11 +62,16 @@ recipient 1 and `CHALLENGE_1_SECOND` to recipient 2. The latter two are sent
|
||||
literally as written. When offline, the planned messages are logged instead.
|
||||
TextBee acceptance means a message was queued, not necessarily delivered.
|
||||
|
||||
Code 2 uses the former manual code value (`Qj4eAn`). On successful submission,
|
||||
it sends a notification to `RECIPIENT_SELF` while the server is live (and logs
|
||||
the notification instead while offline). The result page displays
|
||||
`NEXT_STEP_TEXT` from `src/codes/code2.rs`; replace its TODO text with the next
|
||||
step when ready.
|
||||
Code 2 uses the former manual code value (`QJ4EAN`). Code values are case
|
||||
insensitive. On successful submission, code 2 sends a notification to
|
||||
`RECIPIENT_SELF` while the server is live (and logs the notification instead
|
||||
while offline). The result page displays `NEXT_STEP_TEXT` from
|
||||
`src/codes/code2.rs`; replace its TODO text with the next step when ready.
|
||||
|
||||
Code 5 uses the code value defined in `src/codes/code5.rs`. A successful
|
||||
submission sends a notification to `RECIPIENT_SELF` while the server is live
|
||||
(and logs the notification instead while offline), and displays the completion
|
||||
message without providing a download.
|
||||
|
||||
The robot submits code 1 with `POST /event/buzz` and a JSON body containing
|
||||
`delay_ms` (a non-negative integer) and `secret` (the value of `CODE1_SECRET`).
|
||||
|
||||
Reference in New Issue
Block a user