diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-04 17:41:46 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-04 17:41:46 -0800 |
commit | 492ebed32cf9c08626a4f45fc2aa5e1d90dbad1a (patch) | |
tree | 96fc2d971c979fb5c0aa886875134f877247e5f7 /templates/system/login/user/node.def | |
parent | da7bc447e57c30325596e84d2a02ec5a64cf06d1 (diff) | |
download | vyatta-cfg-system-492ebed32cf9c08626a4f45fc2aa5e1d90dbad1a.tar.gz vyatta-cfg-system-492ebed32cf9c08626a4f45fc2aa5e1d90dbad1a.zip |
add commit check for user password
Diffstat (limited to 'templates/system/login/user/node.def')
-rw-r--r-- | templates/system/login/user/node.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def index 6c5a5c2a..ea037362 100644 --- a/templates/system/login/user/node.def +++ b/templates/system/login/user/node.def @@ -1,6 +1,9 @@ tag: type: txt help: User account information +commit:expression: $VAR(authentication/encrypted-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(@)" # line continuation and $() expansion are done by cli, not sh. # need mandatory encrypted password. |