From 2bdd8c782e73add569e1d5f302bb80bf01f93470 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Feb 2008 00:17:48 +0000 Subject: [PATCH] Merged revisions 46525 via svnmerge from svn://svn.silverstripe.com/silverstripe/modules/cms/branches/2.1.0-rc3oriwave2 ........ r46525 | sminnee | 2007-12-10 15:10:56 +1300 (Mon, 10 Dec 2007) | 3 lines Added Member->SetPassword, a field that lets you have a write-only password field Used Member->SetPassword to create a password column on the MemberTableField for SecurityAdmin Send 'changed password' emails when a user is first created as well as edited ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@49767 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/MemberTableField.php | 2 +- code/SecurityAdmin.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/MemberTableField.php b/code/MemberTableField.php index 41327a49..fd57f941 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -93,7 +93,7 @@ class MemberTableField extends ComplexTableField { } if(!$hidePassword) { - $fieldList["Password"] = "Password"; + $fieldList["SetPassword"] = "Password"; } // $detailFormFields = singleton(Object::getCustomClass($this->stat("data_class")))->getCMSFields(); diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index a99befef..e38fbadc 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -49,7 +49,9 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { $memberList = new MemberTableField( $this, "Members", - $record + $record, + null, + false ) ),