summaryrefslogtreecommitdiff
path: root/interface-definitions/system-login.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-01 21:52:20 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-01 21:52:20 +0200
commit514da738173696c70440c959b9d7ec9afd77fbae (patch)
treece80b19e9917a3341a6b5fa5e47aa8c0eeea0aea /interface-definitions/system-login.xml.in
parentbbe0deda9bfcfd4116c44b42156a628de8400b48 (diff)
downloadvyos-1x-514da738173696c70440c959b9d7ec9afd77fbae.tar.gz
vyos-1x-514da738173696c70440c959b9d7ec9afd77fbae.zip
login: T1948: add missing ssh-public key name regex
Diffstat (limited to 'interface-definitions/system-login.xml.in')
-rw-r--r--interface-definitions/system-login.xml.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in
index 4bfe82268..f4613b8a2 100644
--- a/interface-definitions/system-login.xml.in
+++ b/interface-definitions/system-login.xml.in
@@ -44,6 +44,9 @@
<tagNode name="public-keys">
<properties>
<help>Remote access public keys</help>
+ <constraint>
+ <regex>^[-_a-zA-Z0-9@]+$</regex>
+ </constraint>
<valueHelp>
<format>txt</format>
<description>Key identifier used by ssh-keygen (usually of form user@host)</description>