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
}
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,