From 7ee02ba6fc796c54cc02e47ba7bb3863b4d2494a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 27 Jul 2015 23:50:55 -0700 Subject: Credentials.toString: Don't leak the password --- src/main/scala/com/getbootstrap/no_carrier/github/Credentials.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/com/getbootstrap/no_carrier/github/Credentials.scala b/src/main/scala/com/getbootstrap/no_carrier/github/Credentials.scala index 01502f0..d57a9b0 100644 --- a/src/main/scala/com/getbootstrap/no_carrier/github/Credentials.scala +++ b/src/main/scala/com/getbootstrap/no_carrier/github/Credentials.scala @@ -6,4 +6,5 @@ import com.getbootstrap.no_carrier.http.{UserAgent, SuperWire} case class Credentials(username: String, password: String) { private def basicGithub: Github = new RtGithub(username, password) def github(threshold: Int)(implicit userAgent: UserAgent): Github = new RtGithub(basicGithub.entry.through(classOf[SuperWire], userAgent, new Integer(threshold))) + override def toString: String = s"Credentials(username = ${username}, password = )" } -- cgit v1.2.3