aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-09 14:15:09 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-09 14:15:09 -0400
commit5f6bd323f530410c687b17b0251a5a2ffacb755b (patch)
treed7c96fa01262d7cf26b6b06d58d86dfd942a2014 /web.go
parenta773cf1d876d59ab036ebf8a6843bf78da83531e (diff)
parent8683d2f8570fedad694d0610074296a1452d3942 (diff)
Merge branch 'dev' of github.com:gogits/gogs into dev
Conflicts: models/oauth2.go
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 b8fa9eb7..5dae84b6 100644
--- a/web.go
+++ b/web.go
@@ -91,7 +91,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)
@@ -116,6 +116,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/import", reqSignIn, binding.BindIgnErr(auth.CreateRepoForm{}), repo.Import)
adminReq := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: true, AdminRequire: true})