summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-05 00:51:51 -0500
committerUnknwon <u@gogs.io>2016-03-05 00:51:51 -0500
commita2f13eae559c71d35662b7767a8b8347a26eb53e (patch)
tree35a02d0e6afaf1d9269dc9cee10b478d6c847560 /cmd
parent2a931937a8a92d5b1f3bca9e9cf4cbe23c862ce9 (diff)
downloadgitea-a2f13eae559c71d35662b7767a8b8347a26eb53e.tar.gz
gitea-a2f13eae559c71d35662b7767a8b8347a26eb53e.zip
#1157 some avatar setting changes
- Allow to delete current avatar
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 7158f09a34..a6bf9c97f3 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -217,6 +217,7 @@ 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.Post("/avatar/delete", user.SettingsDeleteAvatar)
m.Combo("/email").Get(user.SettingsEmails).
Post(bindIgnErr(auth.AddEmailForm{}), user.SettingsEmailPost)
m.Post("/email/delete", user.DeleteEmail)