mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 10:07:22 +00:00
fork render
This commit is contained in:
@ -13,7 +13,7 @@ func SignInRequire(redirect bool) martini.Handler {
|
||||
return func(ctx *Context) {
|
||||
if !ctx.IsSigned {
|
||||
if redirect {
|
||||
ctx.Render.Redirect("/")
|
||||
ctx.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.Render.Redirect("/")
|
||||
ctx.Redirect("/")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user