Refactor session cookie handling in user entry logic

- Updated GinVerifyInvite function to replace session cookie sending with a new SendLoginCookies function, improving clarity in cookie management during user login processes.
- Enhanced handling of login responses to better accommodate different user statuses, streamlining the authentication flow.
This commit is contained in:
Max 2025-10-17 13:33:47 +08:00
parent 5437ceec7d
commit 140368a69b

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 {