Add postgres support, clean code, code review

This commit is contained in:
Unknown committed 2014-03-17 14:03:58 -04:00
1 parent 9d3b003add
commit e51afe4621
19 files changed
+1124 -303

No files matched your search

+2
View File
@@ -8,6 +8,7 @@ import (
"github.com/codegangsta/martini"
)
// SignInRequire requires user to sign in.
func SignInRequire(redirect bool) martini.Handler {
return func(ctx *Context) {
if !ctx.IsSigned {
@@ -19,6 +20,7 @@ func SignInRequire(redirect bool) martini.Handler {
}
}
// SignOutRequire requires user to sign out.
func SignOutRequire() martini.Handler {
return func(ctx *Context) {
if ctx.IsSigned {