aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-01-26 07:45:02 +0000
committerr <r@freesoftwareextremist.com>2020-01-26 07:45:34 +0000
commitc9842c65b475fb11876202c626617b019643ef6b (patch)
tree4660db3dbfae4ed78b0890dcbfa0579206211f1a /migrations
parentbf2cfaf0ede0e9744408f52538fb4bcd87a6d5b8 (diff)
downloadbloat-c9842c65b475fb11876202c626617b019643ef6b.tar.gz
bloat-c9842c65b475fb11876202c626617b019643ef6b.zip
Update random id generation algorithm
Diffstat (limited to 'migrations')
-rw-r--r--migrations/csrfToken/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/migrations/csrfToken/main.go b/migrations/csrfToken/main.go
index fcd49f2..f2326df 100644
--- a/migrations/csrfToken/main.go
+++ b/migrations/csrfToken/main.go
@@ -69,7 +69,10 @@ func main() {
if err != nil {
log.Fatal(err)
}
- s.CSRFToken = util.NewCSRFToken()
+ s.CSRFToken, err = util.NewCSRFToken()
+ if err != nil {
+ log.Fatal(err)
+ }
err = sessionRepo.Add(s)
if err != nil {
log.Fatal(err)