fix bug when logout without activate

This commit is contained in:
Unknown 2014-04-18 21:14:35 -04:00
parent aa58320a1b
commit bda8fdc5f4
2 changed files with 2 additions and 2 deletions

View File

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

2
web.go
View File

@ -92,7 +92,6 @@ func runWeb(*cli.Context) {
r.Post("/reset_password", user.ResetPasswdPost) r.Post("/reset_password", user.ResetPasswdPost)
}, reqSignOut) }, reqSignOut)
m.Group("/user", func(r martini.Router) { m.Group("/user", func(r martini.Router) {
r.Get("/logout", user.SignOut)
r.Get("/delete", user.Delete) r.Get("/delete", user.Delete)
r.Post("/delete", user.DeletePost) r.Post("/delete", user.DeletePost)
r.Get("/setting", user.Setting) r.Get("/setting", user.Setting)
@ -104,6 +103,7 @@ func runWeb(*cli.Context) {
r.Get("/email2user", user.Email2User) r.Get("/email2user", user.Email2User)
r.Get("/forget_password", user.ForgotPasswd) r.Get("/forget_password", user.ForgotPasswd)
r.Post("/forget_password", user.ForgotPasswdPost) r.Post("/forget_password", user.ForgotPasswdPost)
r.Get("/logout", user.SignOut)
}) })
m.Group("/user/setting", func(r martini.Router) { m.Group("/user/setting", func(r martini.Router) {
r.Get("/social", user.SettingSocial) r.Get("/social", user.SettingSocial)