types: make pre auth key use bcrypt (#2853)
This commit is contained in:
parent
e3ced80278
commit
da9018a0eb
21 changed files with 1450 additions and 225 deletions
|
|
@ -9,6 +9,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/juanfont/headscale/hscontrol/types"
|
||||
"github.com/rs/zerolog"
|
||||
"gopkg.in/check.v1"
|
||||
"zombiezen.com/go/postgrestest"
|
||||
)
|
||||
|
|
@ -56,6 +57,7 @@ func newSQLiteTestDB() (*HSDatabase, error) {
|
|||
}
|
||||
|
||||
log.Printf("database path: %s", tmpDir+"/headscale_test.db")
|
||||
zerolog.SetGlobalLevel(zerolog.Disabled)
|
||||
|
||||
db, err = NewHeadscaleDatabase(
|
||||
types.DatabaseConfig{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue