missing field
This commit is contained in:
parent
18b71b1086
commit
6f9cde4639
1
ldap.go
1
ldap.go
@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
func createLDAPAccount(uname string, pwd string, email string) error {
|
func createLDAPAccount(uname string, pwd string, email string) error {
|
||||||
if uname == "" || pwd == "" || email == "" {
|
if uname == "" || pwd == "" || email == "" {
|
||||||
|
log.Printf("error: missing field\n")
|
||||||
return errors.New("Missing field")
|
return errors.New("Missing field")
|
||||||
}
|
}
|
||||||
url := Conf.Ldap.Url
|
url := Conf.Ldap.Url
|
||||||
|
Loading…
Reference in New Issue
Block a user