summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Login/User.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm
index d3e9b8bd..e03888cd 100755
--- a/lib/Vyatta/Login/User.pm
+++ b/lib/Vyatta/Login/User.pm
@@ -126,9 +126,14 @@ sub _delete_user {
sub _update_user {
my $user = shift;
my $cfg = new Vyatta::Config;
-
+ my $pwd = "";
+
$cfg->setLevel("system login user $user");
- my $pwd = $cfg->returnValue('authentication encrypted-password');
+ if ($cfg->exists('authentication encrypted-password')) {
+ $pwd = $cfg->returnValue('authentication encrypted-password');
+ } else {
+ $pwd = "!";
+ }
my $level = $cfg->returnValue('level');
my $fname = $cfg->returnValue('full-name');
my $home = $cfg->returnValue('home-directory');