Authentication code is in auth now
This commit is contained in:
15
auth/auth.go
Normal file
15
auth/auth.go
Normal file
@ -0,0 +1,15 @@
|
||||
package auth
|
||||
|
||||
import "github.com/aerogo/aero"
|
||||
|
||||
// Install ...
|
||||
func Install(app *aero.Application) {
|
||||
// Google
|
||||
InstallGoogleAuth(app)
|
||||
|
||||
// Logout
|
||||
app.Get("/logout", func(ctx *aero.Context) string {
|
||||
ctx.Session().Set("userId", nil)
|
||||
return ctx.Redirect("/")
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user