BUGFIX Hiding "change password" fields by default in admin/myprofile, they shouldn't validate the input by default. Replaced with a link to toggle those fields (#3106)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66334 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-20 23:46:41 +00:00 committed by Sam Minnee
parent 4cc3ace3b8
commit 77575e69b7

View File

@ -811,7 +811,13 @@ class Member extends DataObject {
$mainFields = $fields->fieldByName("Root")->fieldByName("Main")->Children;
$password = new ConfirmedPasswordField('Password', 'Password');
$password = new ConfirmedPasswordField(
'Password',
'Password',
null,
null,
true // showOnClick
);
$password->setCanBeEmpty(true);
$mainFields->replaceField('Password', $password);