From b82ed825f720111d75554bd80fa165ed0efed4d0 Mon Sep 17 00:00:00 2001 From: Alena Maslova Date: Tue, 10 May 2022 20:15:38 +0300 Subject: [PATCH] add comment about custom ID user generation --- backend/app/cmd/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app/cmd/server.go b/backend/app/cmd/server.go index 579459a6..3f081d1c 100644 --- a/backend/app/cmd/server.go +++ b/backend/app/cmd/server.go @@ -911,6 +911,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 })