summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-10 22:22:18 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-10 22:22:18 +0800
commit88d873c67f2940325a2a7a8aa851372c9afb983d (patch)
tree53908c92ebc0dbce9ae935b72eb4b959d55a587c /web.go
parent94c7278194694fec728b518d4390b03ba6c237a4 (diff)
parent6b30d9b0f27a8cb0961d52980a8e655d9a0bbda2 (diff)
downloadgitea-88d873c67f2940325a2a7a8aa851372c9afb983d.tar.gz
gitea-88d873c67f2940325a2a7a8aa851372c9afb983d.zip
Merge branch 'dev' of github.com:gogits/gogs into dev
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 af79b2b96b..ecf11ecee0 100644
--- a/web.go
+++ b/web.go
@@ -96,7 +96,7 @@ func runWeb(*cli.Context) {
m.Group("/user", func(r martini.Router) {
r.Any("/login", binding.BindIgnErr(auth.LogInForm{}), user.SignIn)
- r.Any("/login/github", oauth2.LoginRequired, user.SocialSignIn)
+ r.Any("/login/github", user.SocialSignIn)
r.Any("/sign_up", binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)
r.Any("/forget_password", user.ForgotPasswd)
r.Any("/reset_password", user.ResetPasswd)
@@ -121,6 +121,7 @@ func runWeb(*cli.Context) {
m.Get("/user/:username", ignSignIn, user.Profile)
m.Any("/repo/create", reqSignIn, binding.BindIgnErr(auth.CreateRepoForm{}), repo.Create)
+ m.Any("/repo/mirror", reqSignIn, binding.BindIgnErr(auth.CreateRepoForm{}), repo.Mirror)
adminReq := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: true, AdminRequire: true})