summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorPeter <peter@smitmail.eu>2014-12-17 17:42:54 +0200
committerPeter <peter@smitmail.eu>2014-12-17 17:42:54 +0200
commitb033f2f535ad498ed78da6599d446abe2fd5c27d (patch)
tree6723f1c29fd32cea03e68717d992984850450ace /cmd/web.go
parentf34b04cfc09a3bf0d18c7c4d8950869a252f0a28 (diff)
downloadgitea-b033f2f535ad498ed78da6599d446abe2fd5c27d.tar.gz
gitea-b033f2f535ad498ed78da6599d446abe2fd5c27d.zip
Finish method for having multiple emails/user.
All basics are implemented. Missing are the right (localized) strings and the page markup could have a look at by a frontend guy.
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 38b802b682..eeb2f5d28d 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)