mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
#2362 - Fixed change password form
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@52206 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1cacb2c22f
commit
0fdf93469b
@ -37,7 +37,7 @@ class ChangePasswordForm extends Form {
|
||||
}
|
||||
if(!$actions) {
|
||||
$actions = new FieldSet(
|
||||
new FormAction("changePassword", _t('Member.BUTTONCHANGEPASSWORD', "Change Password"))
|
||||
new FormAction("doChangePassword", _t('Member.BUTTONCHANGEPASSWORD', "Change Password"))
|
||||
);
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ class ChangePasswordForm extends Form {
|
||||
*
|
||||
* @param array $data The user submitted data
|
||||
*/
|
||||
function changePassword(array $data) {
|
||||
function doChangePassword(array $data) {
|
||||
if($member = Member::currentUser()) {
|
||||
// The user was logged in, check the current password
|
||||
if($member->checkPassword($data['OldPassword']) == false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user