modules/setting: simple behave change in startup

This commit is contained in:
Unknwon 2015-02-26 19:45:38 -05:00
parent 8896c82d34
commit e3dece1371
4 changed files with 7 additions and 12 deletions

View file

@ -224,6 +224,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
cfg.Section("session").Key("PROVIDER").SetValue("file")
cfg.Section("log").Key("MODE").SetValue("file")
cfg.Section("log").Key("LEVEL").SetValue("Info")
cfg.Section("security").Key("INSTALL_LOCK").SetValue("true")
cfg.Section("security").Key("SECRET_KEY").SetValue(base.GetRandomString(15))