diff options
Diffstat (limited to 'templates/system/login')
-rw-r--r-- | templates/system/login/user/node.def | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def index ea037362..0c1a393d 100644 --- a/templates/system/login/user/node.def +++ b/templates/system/login/user/node.def @@ -2,7 +2,8 @@ tag: type: txt help: User account information commit:expression: $VAR(authentication/encrypted-password) != "" - || $VAR(authentication/plaintext-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(@)" # line continuation and $() expansion are done by cli, not sh. |