mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00: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,7 +255,12 @@ class MemberTableField extends ComplexTableField {
|
|||||||
function AddRecordForm() {
|
function AddRecordForm() {
|
||||||
$fields = new FieldSet();
|
$fields = new FieldSet();
|
||||||
foreach($this->FieldList() as $fieldName => $fieldTitle) {
|
foreach($this->FieldList() as $fieldName => $fieldTitle) {
|
||||||
$fields->push(new TextField($fieldName));
|
// 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));
|
$fields->push(new HiddenField('ctf[ID]', null, $this->group->ID));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user