Update testhelper

This commit is contained in:
Finn 2018-12-18 00:20:55 -08:00
parent 02eebdd399
commit 7822e7154f

View file

@ -24,7 +24,9 @@ func main() {
account := r.PostFormValue("account")
var code string
err := db.QueryRow("SELECT verification_code FROM pending_accounts WHERE number = $1", account).Scan(&code)
crash(err)
if(err != nil) {
fmt.Printf(w, "\n")
}
fmt.Fprintf(w, "%s\n", code)
})