un-mask wifi password

This commit is contained in:
NeilClack
2026-06-18 15:49:05 -05:00
parent 60815ba001
commit 1a67b97804
+1 -3
View File
@@ -2,7 +2,6 @@ package page
import (
"fmt"
"strings"
"time"
"github.com/go-gl/gl/v3.3-core/gl"
@@ -205,7 +204,6 @@ func (p *WiFiSetupPage) handlePasswordInput(sym sdl.Keycode, mod uint16) {
p.connectionError = ""
p.connectionAttemptTime = time.Now()
err := p.networkManager.Connect(*p.wifiDevice, *p.selectedAP, p.passwordInput)
if err != nil {
p.isConnecting = false
@@ -589,7 +587,7 @@ func (p *WiFiSetupPage) updatePasswordTexture() {
if p.passwordInputItem.ID != 0 {
gl.DeleteTextures(1, &p.passwordInputItem.ID)
}
maskedPassword := strings.Repeat("*", len(p.passwordInput))
maskedPassword := p.passwordInput
if maskedPassword == "" {
maskedPassword = " "
}