From 805d9a7ba5675c322794dd692d6adb60cbcf6b11 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sun, 28 Aug 2022 17:58:44 +0200 Subject: [PATCH] Estratto il servizio lista utenti e qualche altra modifica --- .env.dev | 3 +++ _views/utenti.html | 2 +- auth/auth.go | 2 +- auth/ldap.go | 20 +++++++-------- cmd/phc-website-server/main.go | 18 +++++++------ config/config.go | 14 ++++++++--- go.mod | 2 +- handler/handler.go | 9 ++++--- lista_utenti/auth.go | 43 +++++++++++++++++++++++++++++++ lista_utenti/json.go | 44 ++++++++++++++++++++++++++++++++ lista_utenti/lista_utenti.go | 46 ++++++++++++++++++++++++++++++++++ macchinisti.json | 1 + model/user.go | 7 ++++++ util/set.go | 26 +++++++++++++++++++ 14 files changed, 209 insertions(+), 28 deletions(-) create mode 100644 lista_utenti/auth.go create mode 100644 lista_utenti/json.go create mode 100644 lista_utenti/lista_utenti.go create mode 100644 macchinisti.json create mode 100644 util/set.go diff --git a/.env.dev b/.env.dev index 08457d1..5fbcbfc 100644 --- a/.env.dev +++ b/.env.dev @@ -17,3 +17,6 @@ USER_PAGES_BASE_URL=https://poisson.phc.dm.unipi.it/~ # AuthService AUTH_SERVICE_HOST=:memory: + +# Origine per Lista Utenti +LISTA_UTENTI=utenti-poisson-2022.local.json \ No newline at end of file diff --git a/_views/utenti.html b/_views/utenti.html index dbb1ec0..a56aba3 100644 --- a/_views/utenti.html +++ b/_views/utenti.html @@ -41,7 +41,7 @@ entry.item.cognome + ' ' + entry.item.nome : entry.item.nome + ' ' + entry.item.cognome "> -