X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8e4ccdd50ed020591ec6caec89f043253ecc0653..b2ddbc666d31b454e8667beab1cdaa302eca5f9f:/bin/mozilla/admin.pl diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 75fb790aa..ff4641adb 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -476,7 +476,7 @@ sub save_user { $user->{templates} =~ s|.*/||; $user->{templates} = $::lx_office_conf{paths}->{templates} . "/$user->{templates}"; - my $myconfig = new User(id => $form->{id}); + my $myconfig = new User(id => $user->{id}); $::form->show_generic_error($::locale->text('Dataset missing!')) unless $user->{dbname}; $::form->show_generic_error($::locale->text('Database User missing!')) unless $user->{dbuser}; @@ -542,7 +542,7 @@ sub save_user { # Add new user to his groups. if (ref $form->{new_user_group_ids} eq 'ARRAY') { my $all_groups = $main::auth->read_groups(); - my %user = $main::auth->read_user(login => $user->{login}); + my %user = $main::auth->read_user(login => $myconfig->{login}); foreach my $group_id (@{ $form->{new_user_group_ids} }) { my $group = $all_groups->{$group_id}; @@ -564,7 +564,7 @@ sub save_user { $form->error($::locale->text('The settings were saved, but the password was not changed.') . ' ' . join(' ', $verifier->errors($result))); } - $main::auth->change_password($user->{login}, $::form->{new_password}); + $main::auth->change_password($myconfig->{login}, $::form->{new_password}); } $::form->redirect($::locale->text('User saved!'));