Update random id generation algorithm
[bloat] / service / service.go
index db851f77d601956ed46fc3acdb6d1cd9017431ff..c9fccb4c9835b3da9f3abc3432abd3193ba5f1fc 100644 (file)
@@ -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,