add comment about custom ID user generation

This commit is contained in:
Alena Maslova
2022-05-10 12:59:49 -05:00
committed by Umputun
parent ac492180e8
commit b82ed825f7
+2
View File
@@ -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
})