aboutsummaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 04:06:35 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 04:06:35 -0400
commitc01f593daa994dddc208f853c1c116c56d2ea397 (patch)
treedf572e8608c00f2448e19c0b868a38f1f1a30a7a /web.go
parent76dae5bf680cd701b1ae9876ecc21486a8721f92 (diff)
downloadgitea-c01f593daa994dddc208f853c1c116c56d2ea397.tar.gz
gitea-c01f593daa994dddc208f853c1c116c56d2ea397.zip
Add updatePasswd
Diffstat (limited to 'web.go')
-rw-r--r--web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web.go b/web.go
index 856d0f106d..a80c4924b9 100644
--- a/web.go
+++ b/web.go
@@ -64,6 +64,7 @@ func runWeb(*cli.Context) {
m.Get("/user/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds)
m.Any("/user/setting", auth.SignInRequire(true), binding.BindIgnErr(auth.UpdateProfileForm{}), user.Setting)
+ m.Post("/user/setting/update_passwd", auth.SignInRequire(true), binding.BindIgnErr(auth.UpdatePasswdForm{}), user.UpdatePasswd)
m.Any("/user/setting/ssh", auth.SignInRequire(true), binding.BindIgnErr(auth.AddSSHKeyForm{}), user.SettingSSHKeys)
m.Get("/user/:username", auth.SignInRequire(false), user.Profile)