From a470467418a7f14f927ea1c379f163b25d5fb53f Mon Sep 17 00:00:00 2001 From: Chris Seto Date: Mon, 5 Jun 2017 16:16:26 -0400 Subject: [PATCH] Use the right variable --- views.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views.go b/views.go index 9d5fad0..2acb768 100644 --- a/views.go +++ b/views.go @@ -87,7 +87,7 @@ func LoginGET(c echo.Context) error { FROM osf_osfuser WHERE username = $1 OR EXISTS(SELECT * FROM osf_email WHERE osf_email.user_id = osf_osfuser.id AND osf_email.address = $1) - `, username).Scan(&verification) + `, uname).Scan(&verification) if err != nil { if err != sql.ErrNoRows {