OS Customisation: Validate usernames

Import the systemd recommended username validation regex.

Resolves a ticket reported to the Raspberry Pi information inbox.
This commit is contained in:
Tom Dewey 2024-02-14 14:22:01 +00:00 committed by Tom Dewey
parent a44b9ae856
commit 6a19fa1938

View file

@ -141,6 +141,7 @@ Window {
selectByMouse: true
property bool indicateError: false
maximumLength: 31
validator: RegularExpressionValidator { regularExpression: /^[a-z][a-z0-9-]{0,30}$/ }
onTextEdited: {
indicateError = false