mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
565ca59b57
commit
0a7431a0ff
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user