mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Always name the cookie "_session"
This commit is contained in:
parent
7a61b16e7a
commit
82d5ac908d
@ -129,7 +129,7 @@ func (s Site) Router() *gin.Engine {
|
|||||||
router.HTMLRender = s.loadTemplates("index.tmpl")
|
router.HTMLRender = s.loadTemplates("index.tmpl")
|
||||||
}
|
}
|
||||||
|
|
||||||
router.Use(sessions.Sessions(s.PathToData, s.SessionStore))
|
router.Use(sessions.Sessions("_session", s.SessionStore))
|
||||||
if s.SecretCode != "" {
|
if s.SecretCode != "" {
|
||||||
cfg := &secretRequired.Config{
|
cfg := &secretRequired.Config{
|
||||||
Secret: s.SecretCode,
|
Secret: s.SecretCode,
|
||||||
|
Loading…
Reference in New Issue
Block a user