Implementing Activate User
This commit is contained in:
parent
66b6abb253
commit
c6a47b3efc
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ func checkInviterLogin(w http.ResponseWriter, r *http.Request) *LoginStatus {
|
||||||
func handleInviteNewAccount(w http.ResponseWriter, r *http.Request) {
|
func handleInviteNewAccount(w http.ResponseWriter, r *http.Request) {
|
||||||
l, err := ldapOpen(w)
|
l, err := ldapOpen(w)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf(fmt.Sprintf("58: %v %v", err, loginInfo))
|
log.Printf(fmt.Sprintf("58: %v %v", err, l))
|
||||||
}
|
}
|
||||||
// l.Bind(config.NewUserDN, config.NewUserPassword)
|
// l.Bind(config.NewUserDN, config.NewUserPassword)
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ func handleInviteNewAccount(w http.ResponseWriter, r *http.Request) {
|
||||||
// loginInfo, err := doLogin(w, r, "testuser", config.NewUserDN, config.NewUserPassword)
|
// loginInfo, err := doLogin(w, r, "testuser", config.NewUserDN, config.NewUserPassword)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf(fmt.Sprintf("58: %v %v", err, loginInfo))
|
log.Printf(fmt.Sprintf("58: %v %v", err, l))
|
||||||
}
|
}
|
||||||
|
|
||||||
// l := ldapOpen(w)
|
// l := ldapOpen(w)
|
||||||
|
@ -65,7 +65,7 @@ func handleInviteNewAccount(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
err = l.Bind(config.NewUserDN, config.NewUserPassword)
|
err = l.Bind(config.NewUserDN, config.NewUserPassword)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf(fmt.Sprintf("58: %v %v", err, loginInfo))
|
log.Printf(fmt.Sprintf("58: %v %v", err, l))
|
||||||
}
|
}
|
||||||
handleNewAccount(w, r, l, config.NewUserDN)
|
handleNewAccount(w, r, l, config.NewUserDN)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue