Skip to content

Commit

Permalink
add comment about custom ID user generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alena Maslova committed May 10, 2022
1 parent ccefcfa commit 68ac624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/app/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,8 @@ func (s *ServerCommand) addAuthProviders(authenticator *auth.Service) error {
}
return true, nil
}),
// Custom user ID generator, used to distinguish anonymous users with the same login
// coming from different IPs
func(user string, r *http.Request) string {
return user + r.RemoteAddr
})
Expand Down

0 comments on commit 68ac624

Please sign in to comment.