fix: generate random admin password on quick setup

This should help mitigate issues like #3646
This commit is contained in:
bo0tzz authored and Henrique Dias committed 2025-06-04 17:36:55 +02:00
1 parent 1d14798653
commit a46acba5f9
2 files changed
+23 -1

No files matched your search

+6 -1
View File
@@ -378,7 +378,12 @@ func quickSetup(flags *pflag.FlagSet, d pythonData) {
password := getParam(flags, "password")
if password == "" {
password, err = users.HashPwd("admin")
pwd, err := users.RandomPwd()
checkErr(err)
log.Println("Generated random admin password for quick setup:", pwd)
password, err = users.HashPwd(pwd)
checkErr(err)
}