Update random id generation algorithm

This commit is contained in:
r 2020-01-26 07:45:02 +00:00
parent bf2cfaf0ed
commit c9842c65b4
3 changed files with 23 additions and 9 deletions

View file

@ -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)