BUGFIX: #1450 - Passwords should be obscured when adding a member in a MemberTableField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@72798 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2009-03-10 21:43:20 +00:00 committed by Sam Minnee
parent 565ca59b57
commit 0a7431a0ff

View File

@ -255,8 +255,13 @@ class MemberTableField extends ComplexTableField {
function AddRecordForm() {
$fields = new FieldSet();
foreach($this->FieldList() as $fieldName => $fieldTitle) {
// If we're adding the set password field, we want to hide the text from any peeping eyes
if($fieldName == 'SetPassword') {
$fields->push(new PasswordField($fieldName));
} else {
$fields->push(new TextField($fieldName));
}
}
$fields->push(new HiddenField('ctf[ID]', null, $this->group->ID));
$actions = new FieldSet(