From 84ae974db4c5c52ef3bb5f95ded0425b5d62ec74 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 2 Dec 2007 21:30:12 +0000 Subject: [PATCH] #1850 - Changing default admin password after installation does not work (merged from branches/2.2.0@45907, r45451) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46101 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/security/Member.php b/security/Member.php index 4a993a703..beac32e2f 100644 --- a/security/Member.php +++ b/security/Member.php @@ -1054,18 +1054,6 @@ class Member_ProfileForm extends Form { $SQL_data = Convert::raw2sql($data); $member = DataObject::get_by_id("Member", $SQL_data['ID']); - if($member->canEdit()) { - if(!empty($SQL_data['Password']) && !empty($SQL_data['ConfirmPassword'])) { - if($SQL_data['Password']==$SQL_data['ConfirmPassword']) { - $member->Password=$SQL_data['Password']; - } else { - $form->addErrorMessage("Blurb","Both passwords need to match. Please try again.","bad"); - Director::redirectBack(); - } - } else { - $form->dataFieldByName("Password")->setValue($member->Password); - } - } if($SQL_data['Locale'] != $member->Locale) { $form->addErrorMessage("Generic", _t('Member.REFRESHLANG'),"good");