From 9bdeb5bd29b4f073def8183c8bed90447e4a8e32 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Fri, 21 Jul 2023 09:55:52 +0200 Subject: [PATCH] Implementing Activate User --- invite.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/invite.go b/invite.go index 9bab204..7fb67f5 100644 --- a/invite.go +++ b/invite.go @@ -38,13 +38,13 @@ func checkInviterLogin(w http.ResponseWriter, r *http.Request) *LoginStatus { // New account creation directly from interface func handleInviteNewAccount(w http.ResponseWriter, r *http.Request) { - l := ldapOpen(w) - l.Bind(config.NewUserDN, config.NewUserPassword) + // l := ldapOpen(w) + // l.Bind(config.NewUserDN, config.NewUserPassword) - // login := checkInviterLogin(w, r) - // if login == nil { - // return - // } + login := checkInviterLogin(w, r) + if login == nil { + return + } // l, _ := ldap.DialURL(config.LdapServerAddr) // l.Bind(config.NewUserDN, config.NewUserPassword) handleNewAccount(w, r, l, config.NewUserDN)