Skip to content
Snippets Groups Projects
Commit 3700940f authored by gbe's avatar gbe
Browse files

Don't log hashed pw, remove boltdb from handler struct

parent 5421749e
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,6 @@ func (a authProvider) Valid(ctx context.Context, userName, pass string) (*auth.U
return nil, errAuthFailed
}
log.Printf("hashed pw for %q: %q", userName, dbHash)
if err != nil {
log.Printf("got error for user %q: %s (%T)", userName, err, err)
return nil, err
......
......@@ -34,7 +34,6 @@ func httpError(w http.ResponseWriter, msg string, err error, status int) {
}
type Handler struct {
db *bolt.DB
sqlDB *sqlx.DB
ap authProvider
}
......@@ -127,7 +126,6 @@ func main() {
}
handler := Handler{
db: db,
sqlDB: sqlDB,
ap: ap,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment