diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-15 05:53:13 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-15 05:53:13 -0400 |
commit | e9fdf1031da4bf3c1acff0377b1d125ad99274e6 (patch) | |
tree | 510af882f866b312d2b1b7e888a4432c26d5dbe2 /web.go | |
parent | 4b8e888437a9972459e73496d811ea30f105f06c (diff) | |
download | gitea-e9fdf1031da4bf3c1acff0377b1d125ad99274e6.tar.gz gitea-e9fdf1031da4bf3c1acff0377b1d125ad99274e6.zip |
Clean code
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ func runWeb(*cli.Context) { m.Use(sessions.Sessions("my_session", store)) // Routers. - m.Get("/", auth.SignInRequire(false), routers.Home) + m.Get("/", auth.SignInRequire(true), routers.Home) m.Any("/user/login", auth.SignOutRequire(), binding.BindIgnErr(auth.LogInForm{}), user.SignIn) m.Any("/user/logout", auth.SignInRequire(true), user.SignOut) m.Any("/user/sign_up", auth.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp) |