mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
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:
parent
a44b9ae856
commit
6a19fa1938
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ Window {
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
property bool indicateError: false
|
property bool indicateError: false
|
||||||
maximumLength: 31
|
maximumLength: 31
|
||||||
|
validator: RegularExpressionValidator { regularExpression: /^[a-z][a-z0-9-]{0,30}$/ }
|
||||||
|
|
||||||
onTextEdited: {
|
onTextEdited: {
|
||||||
indicateError = false
|
indicateError = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue