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 --- service/service.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'service') 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, -- cgit v1.2.3