feat: add option to auto-create admin user on first start-up

Useful for development purposes
This commit is contained in:
Deluan 2020-02-08 14:50:33 -05:00
parent 10ead1f5f2
commit 2c146ea1fe
3 changed files with 45 additions and 2 deletions

View file

@ -29,8 +29,9 @@ type nd struct {
ScanInterval string `default:"1m"`
// DevFlags. These are used to enable/disable debugging and incomplete features
DevDisableBanner bool `default:"false"`
DevLogSourceLine bool `default:"false"`
DevDisableBanner bool `default:"false"`
DevLogSourceLine bool `default:"false"`
DevAutoCreateAdminPassword string `default:""`
}
var Server = &nd{}