mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -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 {
|
fun hasAuth() : Boolean {
|
||||||
return (! username.isNullOrBlank()) && (! password.isNullOrBlank())
|
return (! username.isNullOrBlank()) && (! password.isNullOrBlank())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun toString() : String {
|
||||||
|
return url + if (username != null) {
|
||||||
|
"username: $username, password: ***"
|
||||||
|
} else {
|
||||||
|
""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Directive
|
@Directive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue