MINOR Security->LostPasswordForm() code formatting changes for clarity

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64404 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-10-16 11:08:52 +00:00
parent e820c88be0
commit e8e197c298

View File

@ -401,13 +401,20 @@ class Security extends Controller {
* @return Form Returns the lost password form
*/
public function LostPasswordForm() {
return new MemberLoginForm($this, 'LostPasswordForm',
new FieldSet(new EmailField('Email', _t('Member.EMAIL'))),
new FieldSet(new FormAction(
'forgotPassword',
_t('Security.BUTTONSEND', 'Send me the password reset link')
)),
false);
return new MemberLoginForm(
$this,
'LostPasswordForm',
new FieldSet(
new EmailField('Email', _t('Member.EMAIL'))
),
new FieldSet(
new FormAction(
'forgotPassword',
_t('Security.BUTTONSEND', 'Send me the password reset link')
)
),
false
);
}