Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/no-carrier.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2015-07-28 09:50:55 +0300
committerChris Rebert <code@rebertia.com>2015-07-28 09:50:55 +0300
commit7ee02ba6fc796c54cc02e47ba7bb3863b4d2494a (patch)
tree709842d494ef1f80819a5c1ad7450c632beee885
parent9d3a8856acaeabef8f6a893adb9ce88f2cf1e8d0 (diff)
Credentials.toString: Don't leak the password
-rw-r--r--src/main/scala/com/getbootstrap/no_carrier/github/Credentials.scala1
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>)"
}