use helper from shuffle-shared to create session_token

Signed-off-by: Pascal Sthamer <pascal+github@sthamer.xyz>
This commit is contained in:
Pascal Sthamer
2025-12-23 11:50:56 +01:00
parent 4e198854c8
commit 4596833cda
+2 -5
View File
@@ -826,11 +826,8 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) {
//}
expiration := time.Now().Add(3600 * time.Second)
http.SetCookie(resp, &http.Cookie{
Name: "session_token",
Value: userInfo.Session,
Expires: expiration,
})
sessionCookie := shuffle.ConstructSessionCookie(userInfo.Session, expiration)
http.SetCookie(resp, sessionCookie)
// Updating user info if there's something wrong
if len(userInfo.ActiveOrg.Name) == 0 || len(userInfo.ActiveOrg.Id) == 0 {