From 7746dda87c0cfb7021bcf5387357ac7f57ffe9cb Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Thu, 20 Jul 2023 13:51:28 +0200 Subject: [PATCH] Trying a utility file --- invite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invite.go b/invite.go index 935ffd1..0afa702 100644 --- a/invite.go +++ b/invite.go @@ -52,7 +52,7 @@ func handleInvitationCode(w http.ResponseWriter, r *http.Request) { code := mux.Vars(r)["code"] code_id, code_pw := readCode(code) - log.Printf(code_pw) + // log.Printf(code_pw) login := checkLogin(w, r) @@ -62,7 +62,7 @@ func handleInvitationCode(w http.ResponseWriter, r *http.Request) { // } inviteDn := config.InvitationNameAttr + "=" + code_id + "," + config.InvitationBaseDN - // err := l.Bind(inviteDn, code_pw) + err := l.Bind(inviteDn, code_pw) if err != nil { templateInviteInvalidCode := getTemplate("invite_invalid_code.html") templateInviteInvalidCode.Execute(w, nil)