Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit ed5f75e

Browse files
committed
Merge branch 'master' of github.com:msoedov/hacker-slides
2 parents 8bd45f6 + aa5d3db commit ed5f75e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)