From 79537467da16a6eb877df20f295a447037092903 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 20 Dec 2014 22:51:16 -0500 Subject: [PATCH] mirror fix and update --- cmd/web.go | 2 +- conf/app.ini | 2 +- conf/locale/locale_fr-CA.ini | 8 ++++---- routers/install.go | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index df7c96b123..1da1f2500b 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -136,7 +136,7 @@ func newMacaron() *macaron.Macaron { Provider: setting.SessionProvider, Config: *setting.SessionConfig, })) - m.Use(csrf.Generate(csrf.Options{ + m.Use(csrf.Csrfer(csrf.Options{ Secret: setting.SecretKey, SetCookie: true, Header: "X-Csrf-Token", diff --git a/conf/app.ini b/conf/app.ini index d6ee6ae4d4..e1455f0e1e 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -154,7 +154,7 @@ HOST = [session] ; Either "memory", "file", "redis" or "mysql", default is "memory" -PROVIDER = file +PROVIDER = memory ; Provider config options ; memory: not have any config yet ; file: session file path, e.g. `data/sessions` diff --git a/conf/locale/locale_fr-CA.ini b/conf/locale/locale_fr-CA.ini index 4f710b00ce..c95e73ff42 100755 --- a/conf/locale/locale_fr-CA.ini +++ b/conf/locale/locale_fr-CA.ini @@ -26,7 +26,7 @@ organization=Organisation mirror=Miroir new_repo=Nouveau Référentiel new_migrate=Nouvelle Migration -new_fork=Nouveau référentiel de fourche +new_fork=Nouveau Référentiel d'Embranchement new_org=Nouvelle Organisation manage_org=Gérer les Organisations admin_panel=Administration @@ -257,9 +257,9 @@ repo_name=Nom du Référentiel repo_name_helper=Idéalement, le nom d'un Référentiel devrait être court, mémorable et unique. visibility=Visibilité visiblity_helper=Ce Référentiel est Privé -fork_repo=Référentiel de la fourche -fork_from=Fourche de -fork_visiblity_helper=Référentiel Aristide ne peut pas changer sa visiblité +fork_repo=Référentiel d'Embranchement +fork_from=Embranchement de +fork_visiblity_helper=Un Référentiel d'embranchement ne peut pas changer sa visiblité repo_desc=Description repo_lang=Langue repo_lang_helper=Sélectionner un fichier .gitignore diff --git a/routers/install.go b/routers/install.go index df8a05651a..ddbe3ea36f 100644 --- a/routers/install.go +++ b/routers/install.go @@ -235,6 +235,8 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) { setting.Cfg.SetValue("", "RUN_MODE", "prod") + setting.Cfg.SetValue("session", "PROVIDER", "file") + setting.Cfg.SetValue("log", "MODE", "file") setting.Cfg.SetValue("security", "INSTALL_LOCK", "true")