Remove "full_name" indication, keep only name & *_name

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-10-02 17:18:51 +02:00
parent e4b2edeae2
commit c03b534009
5 changed files with 3 additions and 80 deletions

View File

@@ -118,11 +118,6 @@ func removeDuplicateMaps(maps []map[string]string) []map[string]string {
}
func buildSqlQuery(s *server.Server, queryText, column string, exactMatch bool) string {
// Normalize "name" -> "full_name"
if strings.EqualFold(column, "name") {
column = "full_name"
}
// Step 1: Determine candidate columns to search
var candidateColumns []string
if column == "all" || column == "" {

View File

@@ -42,7 +42,7 @@ func LoadServerSettings() ServerSettings {
// Dataleaks
Folders: getEnvStringListOrDefault("DATALEAKS_FOLDERS", []string{}),
CacheFolder: getEnvStringOrDefault("DATALEAKS_CACHE_FOLDER", ""),
BaseColumns: getEnvStringListOrDefault("BASE_COLUMNS", []string{"email", "username", "password", "full_name", "phone", "url"}),
BaseColumns: getEnvStringListOrDefault("BASE_COLUMNS", []string{"email", "username", "password", "name", "phone", "url"}),
Limit: getEnvIntOrDefault("LIMIT", 200),
ReloadDataleaksInterval: getEnvDurationOrDefault("RELOAD_DATALEAKS_INTERVAL", 20*time.Minute),