diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-04-10 22:22:18 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-04-10 22:22:18 +0800 |
commit | 88d873c67f2940325a2a7a8aa851372c9afb983d (patch) | |
tree | 53908c92ebc0dbce9ae935b72eb4b959d55a587c /web.go | |
parent | 94c7278194694fec728b518d4390b03ba6c237a4 (diff) | |
parent | 6b30d9b0f27a8cb0961d52980a8e655d9a0bbda2 (diff) | |
download | gitea-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.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}) |