From 38db9480a208032c8f01f074a0e0ccfdd25432d8 Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 18 Mar 2014 14:28:47 -0500 Subject: [PATCH] Cleaned up comments for auth.go --- auth/auth.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/auth/auth.go b/auth/auth.go index 3dbee390..89ffbacc 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "crypto/rand" "code.google.com/p/go.crypto/bcrypt" + "crypto/rand" ctx "github.com/gorilla/context" "github.com/gorilla/securecookie" "github.com/gorilla/sessions" @@ -35,7 +35,6 @@ func Login(r *http.Request) (bool, error) { session, _ := Store.Get(r, "gophish") u, err := db.GetUserByUsername(username) if err != db.ErrUsernameTaken { - //Return false, but don't return an error return false, err } //If we've made it here, we should have a valid user stored in u