You've already forked golang-base-project
Improves documentation (#13)
* Documents all env variables and adds an example project * Adds godoc comments * Fixed package naming issue
This commit is contained in:
@ -8,9 +8,10 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Logout deletes the current user session and redirects the user to the index page
|
||||
func (controller Controller) Logout(c *gin.Context) {
|
||||
session := sessions.Default(c)
|
||||
session.Delete(middleware.SessionIdentifierKey)
|
||||
session.Delete(middleware.SessionIDKey)
|
||||
err := session.Save()
|
||||
log.Println(err)
|
||||
|
||||
|
Reference in New Issue
Block a user