Ensure default root password is randomly generated
This commit is contained in:
parent
2c23ee3ffb
commit
b3c732ad7b
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ import (
|
|||
|
||||
"github.com/abcum/surreal/cnf"
|
||||
"github.com/abcum/surreal/log"
|
||||
"github.com/abcum/surreal/util/rand"
|
||||
"github.com/abcum/surreal/util/uuid"
|
||||
)
|
||||
|
||||
|
@ -138,7 +139,7 @@ func setup() {
|
|||
}
|
||||
|
||||
if opts.Auth.Pass == "" {
|
||||
opts.Auth.Pass = "root"
|
||||
opts.Auth.Pass = string(rand.New(20))
|
||||
}
|
||||
|
||||
// --------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue