mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
4cc3ace3b8
commit
77575e69b7
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user