extractFormToken pulls the token from standard form encoding. Request body is expected to be application/x-www-form-urlencoded since the confirmation page submits a plain HTML form.
(r *http.Request)
| 125 | // body is expected to be application/x-www-form-urlencoded since the |
| 126 | // confirmation page submits a plain HTML form. |
| 127 | func extractFormToken(r *http.Request) string { |
| 128 | _ = r.ParseForm() |
| 129 | return r.FormValue("t") |
| 130 | } |
| 131 | |
| 132 | // verifyMagicToken runs the HMAC + exp + action whitelist checks and |
| 133 | // returns either claims or an (HTTP status, user-visible message) pair. |
no outgoing calls
no test coverage detected