Trying a utility file

This commit is contained in:
Chris Mann 2023-07-20 13:52:16 +02:00
parent 7746dda87c
commit 8f5f289dec

View file

@ -62,7 +62,7 @@ func handleInvitationCode(w http.ResponseWriter, r *http.Request) {
// } // }
inviteDn := config.InvitationNameAttr + "=" + code_id + "," + config.InvitationBaseDN inviteDn := config.InvitationNameAttr + "=" + code_id + "," + config.InvitationBaseDN
err := l.Bind(inviteDn, code_pw) err := login.conn.Bind(inviteDn, code_pw)
if err != nil { if err != nil {
templateInviteInvalidCode := getTemplate("invite_invalid_code.html") templateInviteInvalidCode := getTemplate("invite_invalid_code.html")
templateInviteInvalidCode.Execute(w, nil) templateInviteInvalidCode.Execute(w, nil)