fix: allow non-ascii chars in passwords

Fixes #1424
This commit is contained in:
2 * r + 2 * t 2026-04-30 22:47:42 +10:00
parent dfbd0829e7
commit efc08759ce

View file

@ -31,8 +31,8 @@ Scope {
} else {
buffer = buffer.slice(0, -1);
}
} else if (" abcdefghijklmnopqrstuvwxyz1234567890`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/?".includes(event.text.toLowerCase())) {
// No illegal characters (you are insane if you use unicode in your password)
} else if (/^[^\x00-\x1F\x7F-\x9F]+$/.test(event.text)) {
// Allow anything except control characters
buffer += event.text;
}
}