summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-14 01:12:07 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-14 01:12:07 -0400
commit47edf7f4f9d359765764207cbcb6dd82dba36de8 (patch)
treea809ed1add57ce5eaae2d55190bb55abac294718 /web.go
parent495a52d78bfa25759ac4930ccf474206a562c219 (diff)
downloadgitea-47edf7f4f9d359765764207cbcb6dd82dba36de8.tar.gz
gitea-47edf7f4f9d359765764207cbcb6dd82dba36de8.zip
Finish update password and profile
Diffstat (limited to 'web.go')
-rw-r--r--web.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/web.go b/web.go
index 4712861763..1fa19afc17 100644
--- a/web.go
+++ b/web.go
@@ -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)