summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-01 21:51:55 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-01 21:51:55 +0200
commitbbe0deda9bfcfd4116c44b42156a628de8400b48 (patch)
treee7eaf8d653567fef3f20079faccc966daf1acdf8
parent6c280b1ca52c8f2a80bbaea52aa3e09060af04b3 (diff)
downloadvyos-1x-bbe0deda9bfcfd4116c44b42156a628de8400b48.tar.gz
vyos-1x-bbe0deda9bfcfd4116c44b42156a628de8400b48.zip
login: T1948: fix username regex - add missing start ^ and end $
-rw-r--r--interface-definitions/system-login.xml.in2
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>