diff options
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/login/user/node.def | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def index d23a397f..751767d6 100644 --- a/templates/system/login/user/node.def +++ b/templates/system/login/user/node.def @@ -1,9 +1,13 @@ tag: type: txt help: Set user account information + +syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*\\$?$" + ; "invalid user name $VAR(@)" + +syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_username.pl $VAR(@)" + commit:expression: $VAR(authentication/encrypted-password) != "" || ($VAR(authentication/plaintext-password) != "" && $VAR(authentication/plaintext-password/@) != "") ; "user password must be specified" -syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*\\$?$" - ; "invalid user name $VAR(@)" |