diff options
author | Chris Rebert <code@rebertia.com> | 2015-07-28 09:50:55 +0300 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2015-07-28 09:50:55 +0300 |
commit | 7ee02ba6fc796c54cc02e47ba7bb3863b4d2494a (patch) | |
tree | 709842d494ef1f80819a5c1ad7450c632beee885 | |
parent | 9d3a8856acaeabef8f6a893adb9ce88f2cf1e8d0 (diff) |
Credentials.toString: Don't leak the password
-rw-r--r-- | src/main/scala/com/getbootstrap/no_carrier/github/Credentials.scala | 1 |
1 files changed, 1 insertions, 0 deletions
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 = <SECRET>)" } |