un-mask wifi password
This commit is contained in:
@@ -2,7 +2,6 @@ package page
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-gl/gl/v3.3-core/gl"
|
"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.connectionError = ""
|
||||||
p.connectionAttemptTime = time.Now()
|
p.connectionAttemptTime = time.Now()
|
||||||
|
|
||||||
|
|
||||||
err := p.networkManager.Connect(*p.wifiDevice, *p.selectedAP, p.passwordInput)
|
err := p.networkManager.Connect(*p.wifiDevice, *p.selectedAP, p.passwordInput)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
p.isConnecting = false
|
p.isConnecting = false
|
||||||
@@ -589,7 +587,7 @@ func (p *WiFiSetupPage) updatePasswordTexture() {
|
|||||||
if p.passwordInputItem.ID != 0 {
|
if p.passwordInputItem.ID != 0 {
|
||||||
gl.DeleteTextures(1, &p.passwordInputItem.ID)
|
gl.DeleteTextures(1, &p.passwordInputItem.ID)
|
||||||
}
|
}
|
||||||
maskedPassword := strings.Repeat("*", len(p.passwordInput))
|
maskedPassword := p.passwordInput
|
||||||
if maskedPassword == "" {
|
if maskedPassword == "" {
|
||||||
maskedPassword = " "
|
maskedPassword = " "
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user