Log info about verification code requests
This commit is contained in:
parent
d3548e882d
commit
033641a6f5
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue