Unverified Commit 26cb3576 authored by Huang Youchuan's avatar Huang Youchuan Committed by GitHub

fix: update user session retrieval to use user.ID instead of userID (#5294)

Co-authored-by: 's avatarhuangyouchuan <huangyouchuan@letu.com>
parent ee9d9603
...@@ -224,7 +224,7 @@ func (in *GRPCAuthInterceptor) authenticateBySession(ctx context.Context, sessio ...@@ -224,7 +224,7 @@ func (in *GRPCAuthInterceptor) authenticateBySession(ctx context.Context, sessio
} }
// Get user sessions and validate the sessionID // Get user sessions and validate the sessionID
sessions, err := in.Store.GetUserSessions(ctx, userID) sessions, err := in.Store.GetUserSessions(ctx, user.ID)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "failed to get user sessions") return nil, errors.Wrap(err, "failed to get user sessions")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment