From 7d451abcc956ce92c6c6dfd6286757ce9da2aaa6 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 12 Dec 2012 14:34:54 -0800 Subject: revert 918bd40d3e3f238a800b1486f70e2d5ee1d71a72 --- .../login/user/node.tag/authentication/plaintext-password/node.def | 5 ----- 1 file changed, 5 deletions(-) (limited to 'templates/system/login') 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` \ -- cgit v1.2.3