summaryrefslogtreecommitdiff
path: root/templates/system/login
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/login')
-rw-r--r--templates/system/login/user/node.tag/authentication/plaintext-password/node.def5
1 files changed, 0 insertions, 5 deletions
diff --git a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
index 84fd972c..12a74a36 100644
--- a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
+++ b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
@@ -4,11 +4,6 @@ help: Plaintext password for encryption
# and do nothing. to set password to empty, user needs to set the
# "encrypted-password" to an empty string (which actually allows login without
# password).
-syntax:expression: exec "\
- if [[ -e /opt/vyatta/etc/.nofirstpasswd && '$VAR(@)' == 'vyatta' ]]; then \
- echo 'Invalid password [$VAR(@)]';\
- exit 1;\
- fi"
update:expression: $VAR(@) == "" \
|| ($VAR(../encrypted-password/@) \
= `/usr/bin/mkpasswd -H md5 '$VAR(@)' | tr -d \\\\n` \