summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-18 23:26:55 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-18 23:26:55 -0400
commit3abc41cccab2486012b46305827433ad6f5deade (patch)
tree91f34bbc2dcfe9266039aafdddbb6be45c7464f4 /routers/install.go
parent9e3a1bc11af8ab95a4d6b47607a89207941a3119 (diff)
downloadgitea-3abc41cccab2486012b46305827433ad6f5deade.tar.gz
gitea-3abc41cccab2486012b46305827433ad6f5deade.zip
Fix API broken
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/install.go b/routers/install.go
index 07af613c7e..eff66e84b3 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -229,6 +229,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
setting.Cfg.SetValue("log", "MODE", "file")
setting.Cfg.SetValue("security", "INSTALL_LOCK", "true")
+ setting.Cfg.SetValue("security", "SECRET_KEY", base.GetRandomString(15))
os.MkdirAll("custom/conf", os.ModePerm)
if err := goconfig.SaveConfigFile(setting.Cfg, path.Join(setting.CustomPath, "conf/app.ini")); err != nil {