2019-09-28 20:04:51 -04:00
|
|
|
package auth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/gob"
|
|
|
|
|
|
|
|
"github.com/gorilla/sessions"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
Store *sessions.FilesystemStore
|
|
|
|
)
|
|
|
|
|
|
|
|
func Init() error {
|
|
|
|
Store = sessions.NewFilesystemStore("", []byte("something-very-secret"))
|
|
|
|
gob.Register(map[string]interface{}{})
|
2019-09-29 15:30:24 -04:00
|
|
|
gob.Register(User{})
|
|
|
|
|
2019-09-28 20:04:51 -04:00
|
|
|
return nil
|
|
|
|
}
|