diff --git a/models/session.go b/models/session.go index 6971f7c..9b13677 100644 --- a/models/session.go +++ b/models/session.go @@ -2,7 +2,8 @@ package models import "gorm.io/gorm" +// Session is gorm sessionstore shadow to properly delete the session type Session struct { gorm.Model - data string + data string //lint:ignore U1000 Ignore unused function temporarily for debugging } diff --git a/server/auth/login.go b/server/auth/login.go index bd323d4..d24733c 100644 --- a/server/auth/login.go +++ b/server/auth/login.go @@ -51,7 +51,6 @@ func LoginPost(c *gin.Context) { // Redirect to the home route upon successful login c.Redirect(http.StatusPermanentRedirect, "/") c.Abort() - return } func LoginGet(c *gin.Context) {