aboutsummaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-13 21:00:12 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-13 21:00:12 -0400
commitd2b53dd43b3bc9719985033bc92b76abb9515b4d (patch)
treef6c038f0b8c11e8a01d7cd26d6bbdb14144696b3 /web.go
parent4b9b8024ba59b5b84d92dca650761b35ebf6408a (diff)
downloadgitea-d2b53dd43b3bc9719985033bc92b76abb9515b4d.tar.gz
gitea-d2b53dd43b3bc9719985033bc92b76abb9515b4d.zip
Add weibo oauth
Diffstat (limited to 'web.go')
-rw-r--r--web.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/web.go b/web.go
index 8ae074ec01..268d9e71da 100644
--- a/web.go
+++ b/web.go
@@ -63,7 +63,7 @@ func runWeb(*cli.Context) {
SignInRequire: base.Service.RequireSignInView,
DisableCsrf: true,
})
-
+
reqSignOut := middleware.Toggle(&middleware.ToggleOptions{SignOutRequire: true})
bindIgnErr := middleware.BindIgnErr
@@ -108,6 +108,7 @@ func runWeb(*cli.Context) {
r.Post("/forget_password", user.ForgotPasswdPost)
})
m.Group("/user/setting", func(r martini.Router) {
+ r.Get("/social", user.SettingSocial)
r.Get("/password", user.SettingPassword)
r.Post("/password", bindIgnErr(auth.UpdatePasswdForm{}), user.SettingPasswordPost)
r.Any("/ssh", bindIgnErr(auth.AddSSHKeyForm{}), user.SettingSSHKeys)