2017-06-17 01:12:28 +02:00

16 lines
276 B
Go

package main
import "github.com/aerogo/aero"
// EnableLogin ...
func EnableLogin(app *aero.Application) {
// Google
EnableGoogleLogin(app)
// Logout
app.Get("/logout", func(ctx *aero.Context) string {
ctx.Session().Set("userId", nil)
return ctx.Redirect("/")
})
}