mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-16 12:05:30 +09:00
Add active page
This commit is contained in:
1 parent
de087c7b4a
commit
a2fbb24615
5 files changed
+60
No files matched your search
@@ -16,6 +16,10 @@ func SignInRequire(redirect bool) martini.Handler {
|
||||
ctx.Render.Redirect("/")
|
||||
}
|
||||
return
|
||||
} else if !ctx.User.IsActive {
|
||||
ctx.Data["Title"] = "Activate Your Account"
|
||||
ctx.Render.HTML(200, "user/active", ctx.Data)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user