Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Commit

Permalink
Make sure not to output the pw when adding a user
Browse files Browse the repository at this point in the history
  • Loading branch information
biilmann committed Aug 28, 2015
1 parent d275556 commit 466d13e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions userdb/db.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package userdb

import (
"fmt"
"io/ioutil"
"os"

Expand Down Expand Up @@ -66,7 +65,6 @@ func (db *UserDB) Get(id string) *User {

// Add a new user to the db
func (db *UserDB) Add(email, name, pw string) (*User, error) {
fmt.Printf("Adding user with pw: '%v'\n", pw)
hash, err := bcrypt.GenerateFromPassword([]byte(pw), bcrypt.DefaultCost)
if err != nil {
return nil, err
Expand Down

0 comments on commit 466d13e

Please sign in to comment.