diff --git a/gogs.go b/gogs.go index 83d9b9c3e..84cf25892 100644 --- a/gogs.go +++ b/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 diff --git a/web.go b/web.go index 2cac77571..8dc232fd2 100644 --- a/web.go +++ b/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})