Browse Source

Mirror bug fix

for-closed-social
Unknown 10 years ago
parent
commit
8719c1b8c5
3 changed files with 3 additions and 3 deletions
  1. +2
    -2
      routers/user/user.go
  2. +0
    -0
      templates/user/activate.tmpl
  3. +1
    -1
      web.go

+ 2
- 2
routers/user/user.go View File

@ -341,7 +341,7 @@ func Activate(ctx *middleware.Context) {
} else {
ctx.Data["ServiceNotEnabled"] = true
}
ctx.HTML(200, "user/active")
ctx.HTML(200, "user/activate")
return
}
@ -363,7 +363,7 @@ func Activate(ctx *middleware.Context) {
}
ctx.Data["IsActivateFailed"] = true
ctx.HTML(200, "user/active")
ctx.HTML(200, "user/activate")
}
func ForgotPasswd(ctx *middleware.Context) {

templates/user/active.tmpl → templates/user/activate.tmpl View File


+ 1
- 1
web.go View File

@ -100,7 +100,7 @@ func runWeb(*cli.Context) {
}, reqSignIn)
m.Group("/user", func(r martini.Router) {
r.Get("/feeds", middleware.Bind(auth.FeedsForm{}), user.Feeds)
r.Get("/activate", user.Activate)
r.Any("/activate", user.Activate)
r.Get("/email2user", user.Email2User)
r.Get("/forget_password", user.ForgotPasswd)
r.Post("/forget_password", user.ForgotPasswdPost)

Loading…
Cancel
Save