Archived
Template
1
0

Adds godoc comments

This commit is contained in:
uberswe
2022-01-09 14:22:43 +01:00
parent 2d3c0df4e5
commit 8c37faf016
30 changed files with 154 additions and 68 deletions

View File

@ -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)