mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Don't display passwords in HostConfig.
This commit is contained in:
parent
acfd8720e1
commit
f37965500c
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,14 @@ data class HostConfig(var url: String = "", var username: String? = null, var pa
|
|||
fun hasAuth() : Boolean {
|
||||
return (! username.isNullOrBlank()) && (! password.isNullOrBlank())
|
||||
}
|
||||
|
||||
override fun toString() : String {
|
||||
return url + if (username != null) {
|
||||
"username: $username, password: ***"
|
||||
} else {
|
||||
""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Directive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue