testhelper now expects postdata key number instead of account

This commit is contained in:
Finn Herzfeld 2019-01-08 14:22:23 -08:00
parent f3f9142f0a
commit 999f29d315

View file

@ -21,7 +21,7 @@ func main() {
crash(err)
http.HandleFunc("/helper/verification-code", func(w http.ResponseWriter, r *http.Request) {
account := r.PostFormValue("account")
account := r.PostFormValue("number")
var code string
err := db.QueryRow("SELECT verification_code FROM pending_accounts WHERE number = $1", account).Scan(&code)
log.Printf("Looking for verification code for %s", account)