From 7ad05ce210e422b4bcbaf074b90f1ec7ecdeb404 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 16 Apr 2014 04:12:31 -0400 Subject: [PATCH] Fix #80 --- gogs.go | 2 +- web.go | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gogs.go b/gogs.go index 83d9b9c3e3b2..84cf2589296e 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 2cac77571208..8dc232fd24b6 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})