Skip to content

Commit 3519f71

Browse files
committed
fix: Change token input field from General to Password type to hide sensitive token values
1 parent 2c8014b commit 3519f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/toolbox/views/TokenPage.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TokenPage(
2525
token: Pair<String, Source>?,
2626
private val onToken: ((token: String) -> Unit),
2727
) : CoderPage(context, context.i18n.ptrl("Enter your token")) {
28-
private val tokenField = TextField(context.i18n.ptrl("Token"), token?.first ?: "", TextType.General)
28+
private val tokenField = TextField(context.i18n.ptrl("Token"), token?.first ?: "", TextType.Password)
2929

3030
/**
3131
* Fields for this page, displayed in order.

0 commit comments

Comments
 (0)