From 57dc8aa2bbb07c5f13a35b73dae1718c464d1ebc Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Tue, 18 Jul 2023 16:09:10 +0200 Subject: [PATCH] State in production --- main.go | 5 +++++ templates/home.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d9bb12b..30bada1 100644 --- a/main.go +++ b/main.go @@ -56,6 +56,8 @@ type ConfigFile struct { S3SecretKey string `json:"s3_secret_key"` S3Region string `json:"s3_region"` S3Bucket string `json:"s3_bucket"` + + Org string `json:"org"` } var configFlag = flag.String("config", "./config.json", "Configuration file path") @@ -80,6 +82,8 @@ func readConfig() ConfigFile { InvitationNameAttr: "cn", InvitedAutoGroups: []string{}, + + Org: "ResDigita", } _, err := os.Stat(*configFlag) @@ -321,6 +325,7 @@ func ldapOpen(w http.ResponseWriter) *ldap.Conn { type HomePageData struct { Login *LoginStatus BaseDN string + Org string } func handleHome(w http.ResponseWriter, r *http.Request) { diff --git a/templates/home.html b/templates/home.html index 7ac7e9c..f34bd68 100644 --- a/templates/home.html +++ b/templates/home.html @@ -20,7 +20,7 @@ Annuaire --> Accéder à mes curriels, mon agenda et à mes contacts - Accéder au numérique des Grands Voisins .com + Accéder au numérique des Grands Voisins .com