diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-01 21:51:55 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-01 21:52:38 +0200 |
commit | c0255a94ef06b14641b1ba280ce7b3e4684271d4 (patch) | |
tree | 6cec46fe90c4dee6ce284cf1b13e4ad0dbced3ae /interface-definitions | |
parent | f5f58669cccbb99ae2b8bc9737e9d6bb782a53a4 (diff) | |
download | vyos-1x-c0255a94ef06b14641b1ba280ce7b3e4684271d4.tar.gz vyos-1x-c0255a94ef06b14641b1ba280ce7b3e4684271d4.zip |
login: T1948: fix username regex - add missing start ^ and end $
(cherry picked from commit bbe0deda9bfcfd4116c44b42156a628de8400b48)
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/system-login.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in index 3c2c7dfa5..4bfe82268 100644 --- a/interface-definitions/system-login.xml.in +++ b/interface-definitions/system-login.xml.in @@ -12,7 +12,7 @@ <properties> <help>Local user account information</help> <constraint> - <regex>[a-zA-Z0-9\-_\.]{1,100}</regex> + <regex>^[-_a-zA-Z0-9.]{1,100}</regex> </constraint> <constraintErrorMessage>Username contains illegal characters or\nexceeds 100 character limitation.</constraintErrorMessage> </properties> |