Implementing Activate User

This commit is contained in:
Chris Mann 2023-07-21 09:55:52 +02:00
parent de6303a973
commit 9bdeb5bd29

View file

@ -38,13 +38,13 @@ func checkInviterLogin(w http.ResponseWriter, r *http.Request) *LoginStatus {
// New account creation directly from interface // New account creation directly from interface
func handleInviteNewAccount(w http.ResponseWriter, r *http.Request) { func handleInviteNewAccount(w http.ResponseWriter, r *http.Request) {
l := ldapOpen(w) // l := ldapOpen(w)
l.Bind(config.NewUserDN, config.NewUserPassword) // l.Bind(config.NewUserDN, config.NewUserPassword)
// login := checkInviterLogin(w, r) login := checkInviterLogin(w, r)
// if login == nil { if login == nil {
// return return
// } }
// l, _ := ldap.DialURL(config.LdapServerAddr) // l, _ := ldap.DialURL(config.LdapServerAddr)
// l.Bind(config.NewUserDN, config.NewUserPassword) // l.Bind(config.NewUserDN, config.NewUserPassword)
handleNewAccount(w, r, l, config.NewUserDN) handleNewAccount(w, r, l, config.NewUserDN)