diff --git a/models/ldap.go b/models/ldap.go index e583b84..227980f 100644 --- a/models/ldap.go +++ b/models/ldap.go @@ -103,7 +103,7 @@ func loadLdapCert() { // Get the certificate from the file cpb, _ := pem.Decode(cf) crt, err := x509.ParseCertificate(cpb.Bytes) - //fmt.Printf("Loaded certificate with subject %s\n", crt.Subject) + //log.Printf("Loaded certificate with subject %s\n", crt.Subject) if err != nil { log.Printf("LoadLdapCert error processing LDAP certificate file '%s' : '%s'\n", ldapCertFile, err) diff --git a/models/user.go b/models/user.go index b443a30..b96f491 100644 --- a/models/user.go +++ b/models/user.go @@ -149,7 +149,7 @@ func LoginCheck(username string, password string) (string, error) { log.Printf("LoginCheck retrieved user '%v' from database\n", u) } - //log.Printf("u: %v\n", u) + log.Printf("u: %v\n", u) if !u.LdapUser { // Locally defined user, perform password verification @@ -180,6 +180,7 @@ func LoginCheck(username string, password string) (string, error) { // If we reached this point then the login was successful // Generate a new token and return it to the user + log.Printf("LoginCheck generating token for user id '%d'\n", uint(u.UserId)) token, err := token.GenerateToken(uint(u.UserId)) if err != nil {