removed session id from register

This commit is contained in:
localhost_frssoft 2023-11-06 12:17:09 +03:00
parent ab58d8a900
commit 53dd0c50ef

View File

@ -991,10 +991,6 @@ func (s *service) NewSessionRegister(c *client, instance string, reason string,
instanceURL = "https://" + instance instanceURL = "https://" + instance
} }
sid, err := util.NewSessionID()
if err != nil {
return
}
csrf, err := util.NewCSRFToken() csrf, err := util.NewCSRFToken()
if err != nil { if err != nil {
return return
@ -1021,7 +1017,6 @@ func (s *service) NewSessionRegister(c *client, instance string, reason string,
return return
} }
sess = &model.Session{ sess = &model.Session{
ID: sid,
Instance: instance, Instance: instance,
UserID: "1", UserID: "1",
ClientID: app.ClientID, ClientID: app.ClientID,