Browse Source

Session secret key

Alex Myasoedov 8 years ago
parent
commit
5569a0b541
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main.go

+ 2 - 2
main.go

@@ -13,14 +13,14 @@ import (
 	"github.com/gin-gonic/gin"
 )
 
-const SessionHeader = "slide-session"
+const sessionHeader = "slide-session"
 
 func NewApp() *gin.Engine {
 
 	r := gin.Default()
 
 	store := sessions.NewCookieStore([]byte("secret"))
-	r.Use(sessions.Sessions(SessionHeader, store))
+	r.Use(sessions.Sessions(sessionHeader, store))
 
 	r.LoadHTMLGlob("templates/*.tmpl")
 	r.Static("/static", "./static")