summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/login/user/node.def7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def
index 7e56ca0f..3b9b570a 100644
--- a/templates/system/login/user/node.def
+++ b/templates/system/login/user/node.def
@@ -4,7 +4,8 @@ help: Set user account information
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/@) != "")
+commit:expression: $VAR(@) == "" ||
+ $VAR(authentication/encrypted-password) != "" ||
+ ( $VAR(authentication/plaintext-password) != "" &&
+ $VAR(authentication/plaintext-password/@) != "")
; "user password must be specified"