missing field

This commit is contained in:
stryan 2020-09-17 19:56:50 -04:00
parent 18b71b1086
commit 6f9cde4639

View File

@ -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