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 83d9b9c3e3..84cf258929 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 2cac775712..8dc232fd24 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})