set go mod
This commit is contained in:
@ -1,17 +1,18 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"cadoles/foodoles/config"
|
||||
"forge.cadoles.com/foodoles/config"
|
||||
"log"
|
||||
|
||||
"github.com/jtblin/go-ldap-client"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
const configFile string = "server.conf"
|
||||
|
||||
// LogIn auth the client
|
||||
func LogIn(username string, password string) (ok bool, user map[string]string) {
|
||||
|
||||
var configFile = "server.conf"
|
||||
var conf *config.Config
|
||||
var conferr error
|
||||
conf, conferr = config.NewFromFile(configFile)
|
||||
|
Reference in New Issue
Block a user