Skip to content

Commit 4a1a2b9

Browse files
authored
Merge pull request #47 from advanced-security/46-use-passwordfield-for-token
46 use passwordfield for token
2 parents 8fae622 + 5fbbf7f commit 4a1a2b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/kotlin/com/github/adrienpessu/sarifviewer/configurable/SettingComponent.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.github.adrienpessu.sarifviewer.configurable
22

33
import com.intellij.ui.components.JBLabel
4+
import com.intellij.ui.components.JBPasswordField
45
import com.intellij.ui.components.JBTextField
56
import com.intellij.util.ui.FormBuilder
67
import javax.swing.JComponent
@@ -9,9 +10,9 @@ import javax.swing.JPanel
910

1011
class SettingComponent {
1112
private var myMainPanel: JPanel? = null
12-
private val ghTokenText = JBTextField()
13+
private val ghTokenText = JBPasswordField()
1314
private val ghesHostnameText = JBTextField()
14-
private val ghesTokenText = JBTextField()
15+
private val ghesTokenText = JBPasswordField()
1516

1617
init {
1718
myMainPanel = FormBuilder.createFormBuilder()

0 commit comments

Comments
 (0)