From: Sven Schöling Date: Tue, 28 Feb 2012 13:14:36 +0000 (+0100) Subject: Admin: change passwort: Auflösung nach login funktioniert nicht mehr aus form. X-Git-Tag: release-2.7.0~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=682454ce7c16b199ce028caa069b0fc9aaa6b70b;p=kivitendo-erp.git Admin: change passwort: Auflösung nach login funktioniert nicht mehr aus form. --- diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 3254b9b85..ff4641adb 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -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!'));