diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-14 01:12:07 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-14 01:12:07 -0400 |
commit | 47edf7f4f9d359765764207cbcb6dd82dba36de8 (patch) | |
tree | a809ed1add57ce5eaae2d55190bb55abac294718 /web.go | |
parent | 495a52d78bfa25759ac4930ccf474206a562c219 (diff) | |
download | gitea-47edf7f4f9d359765764207cbcb6dd82dba36de8.tar.gz gitea-47edf7f4f9d359765764207cbcb6dd82dba36de8.zip |
Finish update password and profile
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -64,8 +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.Get("/user/setting/email_password",auth.SignInRequire(true),user.SettingEmailPassword) - m.Post("/user/setting/update_passwd", auth.SignInRequire(true), binding.BindIgnErr(auth.UpdatePasswdForm{}), user.UpdatePasswd) + m.Any("/user/setting/password", auth.SignInRequire(true), binding.BindIgnErr(auth.UpdatePasswdForm{}), user.SettingPassword) m.Any("/user/setting/ssh", auth.SignInRequire(true), binding.BindIgnErr(auth.AddSSHKeyForm{}), user.SettingSSHKeys) m.Get("/user/:username", auth.SignInRequire(false), user.Profile) |