aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-18 21:14:35 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-18 21:14:35 -0400
commitbda8fdc5f4da70e3d2bc032663a2188aa93d8c9c (patch)
tree871f74f6b4e320ad199626bc2fdd0446d46c7030
parentaa58320a1bc0f90387a936ad2d61a7fa1e6ac92b (diff)
downloadgitea-bda8fdc5f4da70e3d2bc032663a2188aa93d8c9c.tar.gz
gitea-bda8fdc5f4da70e3d2bc032663a2188aa93d8c9c.zip
fix bug when logout without activate
-rw-r--r--gogs.go2
-rw-r--r--web.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/gogs.go b/gogs.go
index 84cf258929..65180754b5 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.0416 Alpha"
+const APP_VER = "0.3.0.0418 Alpha"
func init() {
base.AppVer = APP_VER
diff --git a/web.go b/web.go
index 58d0bc04cb..d8d5aba10d 100644
--- a/web.go
+++ b/web.go
@@ -92,7 +92,6 @@ func runWeb(*cli.Context) {
r.Post("/reset_password", user.ResetPasswdPost)
}, reqSignOut)
m.Group("/user", func(r martini.Router) {
- r.Get("/logout", user.SignOut)
r.Get("/delete", user.Delete)
r.Post("/delete", user.DeletePost)
r.Get("/setting", user.Setting)
@@ -104,6 +103,7 @@ func runWeb(*cli.Context) {
r.Get("/email2user", user.Email2User)
r.Get("/forget_password", user.ForgotPasswd)
r.Post("/forget_password", user.ForgotPasswdPost)
+ r.Get("/logout", user.SignOut)
})
m.Group("/user/setting", func(r martini.Router) {
r.Get("/social", user.SettingSocial)