From ab02beb3147ee62786396ac2379db7322df2eef3 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Sun, 23 Jul 2023 13:14:50 +0200 Subject: [PATCH] G Pas --- gpas.go | 6 +++--- profile.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpas.go b/gpas.go index f095cd3..b1f776b 100644 --- a/gpas.go +++ b/gpas.go @@ -93,9 +93,9 @@ func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (bool, er } err = l.Bind(user.DN, user.Password) if err != nil { - log.Printf(fmt.Sprint("passwordFound %v", err)) - log.Printf(fmt.Sprint("passwordFound %v", user.DN)) - log.Printf(fmt.Sprint("passwordFound %v", user.UID)) + log.Printf("passwordFound %v", err) + log.Printf("passwordFound %v", user.DN) + log.Printf("passwordFound %v", user.UID) return false, err } return true, nil diff --git a/profile.go b/profile.go index 776a489..f8b67a8 100644 --- a/profile.go +++ b/profile.go @@ -146,8 +146,8 @@ func handleFoundPassword(w http.ResponseWriter, r *http.Request) { } data.Success, err = passwordFound(user, config, ldapConn) if err != nil { - log.Printf(fmt.Sprint("handleFoundPassword / passwordFound %v", err)) - log.Printf(fmt.Sprint("handleFoundPassword / passwordFound %user", err)) + log.Printf("handleFoundPassword / passwordFound %v", err) + log.Printf("handleFoundPassword / passwordFound %v", err) data.ErrorMessage = err.Error() } templateFoundPasswordPage.Execute(w, data)