From 791f2ce6c2bc3219236ed887f4a058e01cedaa64 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Fri, 21 Jul 2023 08:15:42 +0200 Subject: [PATCH] Implementing Activate User --- invite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invite.go b/invite.go index 30e085e..6176446 100644 --- a/invite.go +++ b/invite.go @@ -132,7 +132,7 @@ func handleNewAccount(w http.ResponseWriter, r *http.Request, l *ldap.Conn, invi newUser.SN = strings.TrimSpace(strings.Join(r.Form["surname"], "")) newUser.UID = strings.TrimSpace(strings.Join(r.Form["username"], "")) newUser.Mail = strings.TrimSpace(strings.Join(r.Form["mail"], "")) - newUser.DN = "cn=" + newUser.CN + "," + config.InvitationBaseDN + newUser.DN = "cn=" + strings.TrimSpace(strings.Join(r.Form["username"], "@lesgv.com")) + "," + config.InvitationBaseDN password1 := strings.Join(r.Form["password"], "") password2 := strings.Join(r.Form["password2"], "")