The magic-link flow is split into GET (render a confirmation page) and POST (execute the action). This keeps email-client URL scanners — Gmail, Outlook Safe Links, Slack unfurls, corporate mail gateways — from accidentally approving or rejecting on behalf of the reviewer when they preview the link.
(w http.ResponseWriter, r *http.Request)
| 28 | // --- GET confirmation pages --- |
| 29 | |
| 30 | func (a *API) handleApproveMagicLinkGet(w http.ResponseWriter, r *http.Request) { |
| 31 | a.renderConfirmPage(w, r, approvaltoken.ActionApprove) |
| 32 | } |
| 33 | |
| 34 | func (a *API) handleRejectMagicLinkGet(w http.ResponseWriter, r *http.Request) { |
| 35 | a.renderConfirmPage(w, r, approvaltoken.ActionReject) |
nothing calls this directly
no test coverage detected