diff options
author | Unknwon <u@gogs.io> | 2015-09-10 11:40:34 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-10 11:40:34 -0400 |
commit | 52ec80fa18bf991c6356b7aa972a1d3983aa20c3 (patch) | |
tree | 878773705e8d959598be88354317d1bbea80e0a8 /cmd/web.go | |
parent | c8d92fad305f78f0207203b3f1ea955e0ef0309d (diff) | |
download | gitea-52ec80fa18bf991c6356b7aa972a1d3983aa20c3.tar.gz gitea-52ec80fa18bf991c6356b7aa972a1d3983aa20c3.zip |
finish all new user settings UI
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 72dd307378..4f2eb26be6 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -267,8 +267,9 @@ func runWeb(ctx *cli.Context) { m.Get("", user.Settings) m.Post("", bindIgnErr(auth.UpdateProfileForm{}), user.SettingsPost) m.Post("/avatar", binding.MultipartForm(auth.UploadAvatarForm{}), user.SettingsAvatar) - m.Get("/email", user.SettingsEmails) - m.Post("/email", bindIgnErr(auth.AddEmailForm{}), user.SettingsEmailPost) + m.Combo("/email").Get(user.SettingsEmails). + Post(bindIgnErr(auth.AddEmailForm{}), user.SettingsEmailPost) + m.Post("/email/delete", user.DeleteEmail) m.Get("/password", user.SettingsPassword) m.Post("/password", bindIgnErr(auth.ChangePasswordForm{}), user.SettingsPasswordPost) m.Combo("/ssh").Get(user.SettingsSSHKeys). |