Browse Source

Fix #80

pull/85/head
Unknown 11 years ago
parent
commit
7ad05ce210
  1. 2
      gogs.go
  2. 5
      web.go

2
gogs.go

@ -19,7 +19,7 @@ import (
// Test that go1.2 tag above is included in builds. main.go refers to this definition.
const go12tag = true
const APP_VER = "0.3.0.0415 Alpha"
const APP_VER = "0.3.0.0416 Alpha"
func init() {
base.AppVer = APP_VER

5
web.go

@ -60,10 +60,7 @@ func runWeb(*cli.Context) {
reqSignIn := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: true})
ignSignIn := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: base.Service.RequireSignInView})
ignSignInAndCsrf := middleware.Toggle(&middleware.ToggleOptions{
SignInRequire: base.Service.RequireSignInView,
DisableCsrf: true,
})
ignSignInAndCsrf := middleware.Toggle(&middleware.ToggleOptions{DisableCsrf: true})
reqSignOut := middleware.Toggle(&middleware.ToggleOptions{SignOutRequire: true})

Loading…
Cancel
Save