Skip to content

Commit

Permalink
Fix - XmppCredentials writes passwords to logs (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
oanaianc authored Aug 7, 2021
1 parent 12937bf commit 9871ba1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/kotlin/org/jitsi/jibri/config/JibriConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ data class XmppCredentials(
val port: Int? = null,
val username: String = "",
val password: String = ""
)
) {
override fun toString(): String {
return "XmppCredentials(domain=$domain, port=$port, username=$username, password=*****)"
}
}

fun com.typesafe.config.Config.toXmppCredentials(): XmppCredentials =
XmppCredentials(
Expand Down

0 comments on commit 9871ba1

Please sign in to comment.