aboutsummaryrefslogtreecommitdiff
path: root/service
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 /service
parentbf2cfaf0ede0e9744408f52538fb4bcd87a6d5b8 (diff)
downloadbloat-c9842c65b475fb11876202c626617b019643ef6b.tar.gz
bloat-c9842c65b475fb11876202c626617b019643ef6b.zip
Update random id generation algorithm
Diffstat (limited to 'service')
-rw-r--r--service/service.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/service/service.go b/service/service.go
index db851f7..c9fccb4 100644
--- a/service/service.go
+++ b/service/service.go
@@ -106,8 +106,14 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) (
instanceURL = "https://" + instance
}
- sessionID = util.NewSessionId()
- csrfToken := util.NewCSRFToken()
+ sessionID, err = util.NewSessionId()
+ if err != nil {
+ return
+ }
+ csrfToken, err := util.NewCSRFToken()
+ if err != nil {
+ return
+ }
session := model.Session{
ID: sessionID,
InstanceDomain: instance,