feat(users): support predefined users

This commit is contained in:
hexxa 2021-09-17 23:04:41 +08:00 committed by Hexxa
parent 80342a7333
commit 52c8610271
8 changed files with 173 additions and 60 deletions

View file

@ -182,7 +182,7 @@ func initHandlers(router *gin.Engine, cfg gocfg.ICfg, deps *depidx.Deps) (*gin.E
return nil, fmt.Errorf("init admin error: %w", err)
}
deps.Log().Infof("user (%s) is created\n", adminName)
deps.Log().Infof("admin(%s) is created", adminName)
}
fileHdrs, err := fileshdr.NewFileHandlers(cfg, deps)