rcd: Added missing parameter for web-gui info logs.

This commit is contained in:
Chaitanya 2019-08-26 22:54:46 +05:30 committed by Nick Craig-Wood
parent af192d2507
commit 7211c2dca7

View File

@ -61,7 +61,7 @@ See the [rc documentation](/rc/) for more info on the rc flags.
} }
if rcflags.Opt.HTTPOptions.BasicUser == "" { if rcflags.Opt.HTTPOptions.BasicUser == "" {
rcflags.Opt.HTTPOptions.BasicUser = "gui" rcflags.Opt.HTTPOptions.BasicUser = "gui"
fs.Infof("Using default username: %s \n", rcflags.Opt.HTTPOptions.BasicUser) fs.Infof(nil, "Using default username: %s \n", rcflags.Opt.HTTPOptions.BasicUser)
} }
if rcflags.Opt.HTTPOptions.BasicPass == "" { if rcflags.Opt.HTTPOptions.BasicPass == "" {
randomPass, err := random.Password(128) randomPass, err := random.Password(128)
@ -69,7 +69,7 @@ See the [rc documentation](/rc/) for more info on the rc flags.
log.Fatalf("Failed to make password: %v", err) log.Fatalf("Failed to make password: %v", err)
} }
rcflags.Opt.HTTPOptions.BasicPass = randomPass rcflags.Opt.HTTPOptions.BasicPass = randomPass
fs.Infof("No password specified. Using random password: %s \n", randomPass) fs.Infof(nil, "No password specified. Using random password: %s \n", randomPass)
} }
rcflags.Opt.Serve = true rcflags.Opt.Serve = true
} }