Browse Source

mirror fix and update

Unknwon 10 years ago
parent
commit
79537467da
4 changed files with 8 additions and 6 deletions
  1. 1 1
      cmd/web.go
  2. 1 1
      conf/app.ini
  3. 4 4
      conf/locale/locale_fr-CA.ini
  4. 2 0
      routers/install.go

+ 1 - 1
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",

+ 1 - 1
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`

+ 4 - 4
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 <strong>unique</strong>.
 visibility=Visibilité
 visiblity_helper=Ce Référentiel est <span class="label label-red label-radius">Privé</span>
-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

+ 2 - 0
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")