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:
parent
5437ceec7d
commit
140368a69b
1 changed files with 2 additions and 2 deletions
|
|
@ -1166,8 +1166,8 @@ func GinVerifyInvite(c *gin.Context) {
|
||||||
sid = generateSessionID()
|
sid = generateSessionID()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send session cookie
|
// Send login cookies
|
||||||
response.SendSessionCookie(c, sid)
|
SendLoginCookies(c, loginResponse, sid)
|
||||||
|
|
||||||
// Handle different login statuses (in case MFA is enabled or team selection needed)
|
// Handle different login statuses (in case MFA is enabled or team selection needed)
|
||||||
switch loginResponse.Status {
|
switch loginResponse.Status {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue