Skip to content

Commit

Permalink
Allow short passwords
Browse files Browse the repository at this point in the history
They're allowed in Ubiquity and we can't assume the user account is exposed remotely.
  • Loading branch information
clefebvre committed Feb 15, 2022
1 parent 4a504bb commit a5cf86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/lib/live-installer/frontend/gtk_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# "[[:ascii:]]+" gives nested set warning. https://www.regular-expressions.info/posixbrackets.html
PASSWORD_REGEX = r"[\x00-\x7F]+"
PASSWORD_LENGTHS = (6, 2147483647)
PASSWORD_LENGTHS = (1, 2147483647)

HOSTNAME_REGEX = r"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$"
HOSTNAME_MIN_LENGTH = 1
Expand Down

0 comments on commit a5cf86e

Please sign in to comment.