diff options
-rw-r--r-- | templates/system/login/user/node.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def index 451cc078..5f83fe54 100644 --- a/templates/system/login/user/node.def +++ b/templates/system/login/user/node.def @@ -3,6 +3,7 @@ type: txt help: User account information syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_username.pl $VAR(@)" +syntax:expression: exec "${vyos_libexec_dir}/validate-value.py --regex \'^[a-zA-Z0-9\-_]{1,100}\' --value \'$VAR(@)\'"; "illegal characters in username or longer than 100 chars" commit:expression: $VAR(@) == "" || $VAR(authentication/plaintext-password) != "" || |