summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/system/login/user/node.def3
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.