mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 23:53:52 +03:00
Mirror bug fix
This commit is contained in:
parent
642687d08d
commit
8719c1b8c5
3 changed files with 3 additions and 3 deletions
|
@ -341,7 +341,7 @@ func Activate(ctx *middleware.Context) {
|
||||||
} else {
|
} else {
|
||||||
ctx.Data["ServiceNotEnabled"] = true
|
ctx.Data["ServiceNotEnabled"] = true
|
||||||
}
|
}
|
||||||
ctx.HTML(200, "user/active")
|
ctx.HTML(200, "user/activate")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ func Activate(ctx *middleware.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.Data["IsActivateFailed"] = true
|
ctx.Data["IsActivateFailed"] = true
|
||||||
ctx.HTML(200, "user/active")
|
ctx.HTML(200, "user/activate")
|
||||||
}
|
}
|
||||||
|
|
||||||
func ForgotPasswd(ctx *middleware.Context) {
|
func ForgotPasswd(ctx *middleware.Context) {
|
||||||
|
|
2
web.go
2
web.go
|
@ -100,7 +100,7 @@ func runWeb(*cli.Context) {
|
||||||
}, reqSignIn)
|
}, reqSignIn)
|
||||||
m.Group("/user", func(r martini.Router) {
|
m.Group("/user", func(r martini.Router) {
|
||||||
r.Get("/feeds", middleware.Bind(auth.FeedsForm{}), user.Feeds)
|
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("/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)
|
||||||
|
|
Loading…
Reference in a new issue