This repository was archived by the owner on Sep 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ This repo is a reworked version of [Sandstorm Hacker Slides](https://github.com/
2121
2222
2323| Edit mode | Published |
24- | --- | --- | --- |
24+ | --- | --- |
2525| ![ 1st] ( https://sc-cdn.scaleengine.net/i/520e2f4a8ca107b0263936507120027e.png ) | ![ 1st] ( https://sc-cdn.scaleengine.net/i/7ae0d31a40b0b9e7acc3f131754874cf.png ) |
2626| ![ 2nd] ( https://sc-cdn.scaleengine.net/i/5acba66070e24f76bc7f20224adc611e.png ) | ![ 2nd] ( https://sc-cdn.scaleengine.net/i/fee3e1374cb13b1d8c292becb7f514ae.png ) |
2727
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111 log "github.com/Sirupsen/logrus"
1212 haikunator "github.com/atrox/haikunatorgo"
1313 "github.com/gin-contrib/sessions"
14+ "github.com/gin-contrib/sessions/cookie"
1415 "github.com/gin-gonic/gin"
1516 cache "github.com/hashicorp/golang-lru"
1617 "github.com/msoedov/hacker-slides/auth"
@@ -27,7 +28,7 @@ func NewApp() *gin.Engine {
2728
2829 r := gin .Default ()
2930
30- store := sessions . NewCookieStore ([]byte ("secret" ))
31+ store := cookie . NewStore ([]byte ("secret" ))
3132 arc , err := cache .NewARC (10 )
3233 if err != nil {
3334 log .Fatalf ("Failied to allocate cache %#v" , err )
You can’t perform that action at this time.
0 commit comments