Merge pull request #1212 from trheyi/main

Refactor session cookie handling in user entry logic
This commit is contained in:
Max 2025-10-17 13:34:26 +08:00 committed by GitHub
commit 9f4341882e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1166,8 +1166,8 @@ func GinVerifyInvite(c *gin.Context) {
sid = generateSessionID()
}
// Send session cookie
response.SendSessionCookie(c, sid)
// Send login cookies
SendLoginCookies(c, loginResponse, sid)
// Handle different login statuses (in case MFA is enabled or team selection needed)
switch loginResponse.Status {