From 53dd0c50ef823326f19311ca6a48d886e3636e66 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 6 Nov 2023 12:17:09 +0300 Subject: [PATCH] removed session id from register --- service/service.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/service/service.go b/service/service.go index 7c9d704..e8d0821 100644 --- a/service/service.go +++ b/service/service.go @@ -991,10 +991,6 @@ func (s *service) NewSessionRegister(c *client, instance string, reason string, instanceURL = "https://" + instance } - sid, err := util.NewSessionID() - if err != nil { - return - } csrf, err := util.NewCSRFToken() if err != nil { return @@ -1021,7 +1017,6 @@ func (s *service) NewSessionRegister(c *client, instance string, reason string, return } sess = &model.Session{ - ID: sid, Instance: instance, UserID: "1", ClientID: app.ClientID,