Tokeninput wasn't masked in token login.
ADD
commands/commandimpls/tfa.go
+package commandimpls

ADD
tools/bugs/qrcode/main.go
+package main
+
+func main() {
+ $END$
+}

MODIFY
ui/login.go
ui/login.go
@@ -96,6 +96,7 @@ func NewLogin(app *tview.Application, configDir string) *Login {
configureInputComponent(login.tokenInput)
login.tokenInput.SetTitle("Token")
+ login.tokenInput.SetMaskCharacter(login.tokenInputMaskRune)
configureInputComponent(login.usernameInput)
login.usernameInput.SetTitle("E-Mail")
configureInputComponent(login.passwordInput)

ADD
ui/tviewutil/layout.go
+package tviewutil
+
+import "github.com/Bios-Marcel/tview"
+
+func CreateCenteredComponent(component tview.Primitive, width int) tview.Primitive {
+ padding := tview.NewFlex().SetDirection(tview.FlexColumn)
+ padding.AddItem(tview.NewBox(), 0, 1, false)
+ padding.AddItem(component, width, 0, false)
+ padding.AddItem(tview.NewBox(), 0, 1, false)
+
+ return padding
+}

Tokeninput wasn't masked in token login.