diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-13 04:06:35 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-13 04:06:35 -0400 |
commit | c01f593daa994dddc208f853c1c116c56d2ea397 (patch) | |
tree | df572e8608c00f2448e19c0b868a38f1f1a30a7a /web.go | |
parent | 76dae5bf680cd701b1ae9876ecc21486a8721f92 (diff) | |
download | gitea-c01f593daa994dddc208f853c1c116c56d2ea397.tar.gz gitea-c01f593daa994dddc208f853c1c116c56d2ea397.zip |
Add updatePasswd
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |