Fixing bug where password would not be hashed in database if user updated password
This affected admin and user interfaces
This commit is contained in:
parent
83267c5807
commit
1944b5acc0
@ -315,6 +315,7 @@ class IDF_Form_Admin_UserUpdate extends Pluf_Form
|
|||||||
if ($password1 != $password2) {
|
if ($password1 != $password2) {
|
||||||
throw new Pluf_Form_Invalid(__('The passwords do not match. Please give them again.'));
|
throw new Pluf_Form_Invalid(__('The passwords do not match. Please give them again.'));
|
||||||
}
|
}
|
||||||
|
$this->cleaned_data["password"] = base64_encode(sha1($this->cleaned_data['password'], true));
|
||||||
}
|
}
|
||||||
return $this->cleaned_data;
|
return $this->cleaned_data;
|
||||||
}
|
}
|
||||||
|
@ -479,6 +479,7 @@ class IDF_Form_UserAccount extends Pluf_Form
|
|||||||
if ($password1 != $password2) {
|
if ($password1 != $password2) {
|
||||||
throw new Pluf_Form_Invalid(__('The passwords do not match. Please give them again.'));
|
throw new Pluf_Form_Invalid(__('The passwords do not match. Please give them again.'));
|
||||||
}
|
}
|
||||||
|
$this->cleaned_data["password"] = base64_encode(sha1($this->cleaned_data['password'], true));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->cleaned_data;
|
return $this->cleaned_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user