Add rounds to password generation

This commit is contained in:
gmemstr 2017-12-04 17:41:23 -08:00
parent 7197959500
commit 531aadef61
2 changed files with 1 additions and 5 deletions

View file

@ -39,7 +39,7 @@ func Setup() {
fmt.Print("Administrator password: ")
text, err := reader.ReadString('\n')
hash, err := bcrypt.GenerateFromPassword(text)
hash, err := bcrypt.GenerateFromPassword(text, 8)
_, err = db.Exec("INSERT INTO users(id,username,hash,realname,email,permissions) VALUES (0,`admin`,?,`Administrator`,`admin@localhost`,2", hash)

View file

@ -15,10 +15,6 @@ import (
"github.com/gmemstr/pogo/router"
)
func GetPogoVersion() {
return "2.0.0"
}
// Main function that defines routes
func main() {