1
0
Fork 0
forked from forgejo/forgejo

Revert "fork render"

This reverts commit 56af7e99a8.
This commit is contained in:
slene 2014-03-19 22:11:28 +08:00
parent 3634d1ee32
commit 483cc31369
13 changed files with 83 additions and 367 deletions

View file

@ -13,7 +13,7 @@ func SignInRequire(redirect bool) martini.Handler {
return func(ctx *Context) {
if !ctx.IsSigned {
if redirect {
ctx.Redirect("/")
ctx.Render.Redirect("/")
}
return
} else if !ctx.User.IsActive {
@ -28,7 +28,7 @@ func SignInRequire(redirect bool) martini.Handler {
func SignOutRequire() martini.Handler {
return func(ctx *Context) {
if ctx.IsSigned {
ctx.Redirect("/")
ctx.Render.Redirect("/")
}
}
}