+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
+++ /dev/null
-{{template "base/head" .}}
-{{template "base/navbar" .}}
-<div class="container" id="gogs-body">
- <div class="col-md-offset-4 col-md-3">
- Created successfully!
- </div>
-</div>
-{{template "base/footer" .}}
\ No newline at end of file
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)