Fixed the change password always changes admins password bug.

Also some more work on the EMS.
This commit is contained in:
Roy Johnson 2006-02-18 18:24:40 +00:00
parent c5579c81ca
commit 7dc954ebca
3 changed files with 12 additions and 8 deletions

View file

@ -333,8 +333,9 @@ sub editUserForm {
sub editUserFormSave {
my $self = shift;
my $userId = $self->session->form->get("uid");
my $properties;
my $userData = $self->getParams;
my $userData = $self->getParams($userId);
unless (!$self->session->form->process('authWebGUI.identifier') || $self->session->form->process('authWebGUI.identifier') eq "password") {
$properties->{identifier} = Digest::MD5::md5_base64($self->session->form->process('authWebGUI.identifier'));
if($userData->{identifier} ne $properties->{identifier}){