From c9842c65b475fb11876202c626617b019643ef6b Mon Sep 17 00:00:00 2001 From: r Date: Sun, 26 Jan 2020 07:45:02 +0000 Subject: Update random id generation algorithm --- migrations/csrfToken/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'migrations') 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) -- cgit v1.2.3