mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Add Core portnums, reduce MQTT password size
This commit is contained in:
parent
6e6de4da64
commit
b9e99fbe0e
3 changed files with 9 additions and 2 deletions
|
|
@ -196,7 +196,6 @@ struct MQTTConfig: View {
|
|||
}
|
||||
.keyboardType(.default)
|
||||
.scrollDismissesKeyboard(.interactively)
|
||||
|
||||
HStack {
|
||||
Label("password", systemImage: "wallet.pass")
|
||||
TextField("password", text: $password)
|
||||
|
|
@ -206,7 +205,7 @@ struct MQTTConfig: View {
|
|||
.onChange(of: password) {
|
||||
var totalBytes = password.utf8.count
|
||||
// Only mess with the value if it is too big
|
||||
while totalBytes > 62 {
|
||||
while totalBytes > 30 {
|
||||
password = String(password.dropLast())
|
||||
totalBytes = password.utf8.count
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue