remove some logging containing hashes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -107,7 +107,7 @@ func VerifyPassword(password, hashedPassword string) error {
|
||||
return errors.New("unable to compare password with empty hash")
|
||||
}
|
||||
|
||||
log.Printf("VerifyPassword comparing input against hashed value '%s'\n", hashedPassword)
|
||||
//log.Printf("VerifyPassword comparing input against hashed value '%s'\n", hashedPassword)
|
||||
return bcrypt.CompareHashAndPassword([]byte(hashedPassword), []byte(password))
|
||||
}
|
||||
|
||||
@@ -154,10 +154,11 @@ func LoginCheck(username string, password string) (string, error) {
|
||||
return "", errors.New(errString)
|
||||
}
|
||||
} else {
|
||||
log.Printf("LoginCheck retrieved user '%v' from database\n", u)
|
||||
//log.Printf("LoginCheck retrieved user '%v' from database\n", u)
|
||||
log.Printf("LoginCheck retrieved user id '%d' from database\n", u.UserId)
|
||||
}
|
||||
|
||||
log.Printf("u: %v\n", u)
|
||||
//log.Printf("u: %v\n", u)
|
||||
|
||||
if !u.LdapUser {
|
||||
// Locally defined user, perform password verification
|
||||
|
Reference in New Issue
Block a user