Log info about verification code requests

This commit is contained in:
Finn Herzfeld 2018-12-18 16:35:27 -08:00
parent d3548e882d
commit 033641a6f5

View file

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