Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
giftkugel committed Sep 11, 2024
1 parent 68306e6 commit 325a948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/server/handler/forwardauth/forwardauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ func (h *Handler) validateAndCreateAuthCookie(code string, state string, forward
Username: authSession.Username,
}
h.loginSessionManager.StartSession(loginSession)
authCookie, authCookieError := h.cookieManager.CreateForwardAuthCookie(authSession.Username, loginSession.Id)
if authCookieError != nil {
forwardAuthCookie, forwardAuthCookieError := h.cookieManager.CreateForwardAuthCookie(authSession.Username, loginSession.Id)
if forwardAuthCookieError != nil {
return nil, nil, false
}

return &authCookie, forwardSession, true
return &forwardAuthCookie, forwardSession, true
}
return nil, nil, false
}
Expand Down

0 comments on commit 325a948

Please sign in to comment.