summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2014-12-20 22:47:05 -0500
committer无闻 <u@gogs.io>2014-12-20 22:47:05 -0500
commita18decf4ccc9498f5fd394b03f77744bab89081b (patch)
tree63352d102a17c4c45f5bdfd376b415da1901db31 /cmd
parente6e2cf7855b61f6acd7bc98b6757f99846038365 (diff)
parent20b5c23a192b3a87b4fdac724c5be705588e461c (diff)
downloadgitea-a18decf4ccc9498f5fd394b03f77744bab89081b.tar.gz
gitea-a18decf4ccc9498f5fd394b03f77744bab89081b.zip
Merge pull request #755 from phsmit/multiple_emails
Multiple emails
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 27879e4a39..df7c96b123 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -241,6 +241,8 @@ func runWeb(*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.Get("/password", user.SettingsPassword)
m.Post("/password", bindIgnErr(auth.ChangePasswordForm{}), user.SettingsPasswordPost)
m.Get("/ssh", user.SettingsSSHKeys)
@@ -252,6 +254,7 @@ func runWeb(*cli.Context) {
m.Group("/user", func() {
// r.Get("/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds)
m.Any("/activate", user.Activate)
+ m.Any("/activate_email", user.ActivateEmail)
m.Get("/email2user", user.Email2User)
m.Get("/forget_password", user.ForgotPasswd)
m.Post("/forget_password", user.ForgotPasswdPost)