From 3519f71b67c457ae583048bcdcc6720928360faa Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 11 Mar 2025 04:05:06 +0500 Subject: [PATCH] fix: Change token input field from General to Password type to hide sensitive token values --- src/main/kotlin/com/coder/toolbox/views/TokenPage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt b/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt index 4c2b016..1c0a5f7 100644 --- a/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt +++ b/src/main/kotlin/com/coder/toolbox/views/TokenPage.kt @@ -25,7 +25,7 @@ class TokenPage( token: Pair?, private val onToken: ((token: String) -> Unit), ) : CoderPage(context, context.i18n.ptrl("Enter your token")) { - private val tokenField = TextField(context.i18n.ptrl("Token"), token?.first ?: "", TextType.General) + private val tokenField = TextField(context.i18n.ptrl("Token"), token?.first ?: "", TextType.Password) /** * Fields for this page, displayed in order.