aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-19 22:03:31 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-19 22:03:31 +0800
commit42b85a969894e7dbd4273d678b478228155905e2 (patch)
treed46c0f99c7dd668db8af9f701c7650c0a20dc4a3 /web.go
parent89041248d4848038b91d6cffd67120cb4f4cf567 (diff)
parent56af7e99a819758c6bedc6d745a9f810f3fc050d (diff)
Merge branch 'master' of https://github.com/gogits/gogs
Diffstat (limited to 'web.go')
-rw-r--r--web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web.go b/web.go
index 97cfdcc4..fe3596e2 100644
--- a/web.go
+++ b/web.go
@@ -12,7 +12,6 @@ import (
"github.com/codegangsta/cli"
"github.com/codegangsta/martini"
- "github.com/martini-contrib/render"
"github.com/martini-contrib/sessions"
"github.com/gogits/binding"
@@ -64,7 +63,7 @@ func runWeb(*cli.Context) {
m := newMartini()
// Middlewares.
- m.Use(render.Renderer(render.Options{Funcs: []template.FuncMap{base.TemplateFuncs}}))
+ m.Use(middleware.Renderer(middleware.RenderOptions{Funcs: []template.FuncMap{base.TemplateFuncs}}))
// TODO: should use other store because cookie store is not secure.
store := sessions.NewCookieStore([]byte("secret123"))
@@ -84,6 +83,7 @@ func runWeb(*cli.Context) {
m.Any("/user/sign_up", reqSignOut, binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)
m.Any("/user/delete", reqSignIn, user.Delete)
m.Get("/user/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds)
+ m.Get("/user/activate", user.Activate)
m.Any("/user/setting", reqSignIn, binding.BindIgnErr(auth.UpdateProfileForm{}), user.Setting)
m.Any("/user/setting/password", reqSignIn, binding.BindIgnErr(auth.UpdatePasswdForm{}), user.SettingPassword)