mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
e820c88be0
commit
e8e197c298
@ -401,13 +401,20 @@ class Security extends Controller {
|
|||||||
* @return Form Returns the lost password form
|
* @return Form Returns the lost password form
|
||||||
*/
|
*/
|
||||||
public function LostPasswordForm() {
|
public function LostPasswordForm() {
|
||||||
return new MemberLoginForm($this, 'LostPasswordForm',
|
return new MemberLoginForm(
|
||||||
new FieldSet(new EmailField('Email', _t('Member.EMAIL'))),
|
$this,
|
||||||
new FieldSet(new FormAction(
|
'LostPasswordForm',
|
||||||
'forgotPassword',
|
new FieldSet(
|
||||||
_t('Security.BUTTONSEND', 'Send me the password reset link')
|
new EmailField('Email', _t('Member.EMAIL'))
|
||||||
)),
|
),
|
||||||
false);
|
new FieldSet(
|
||||||
|
new FormAction(
|
||||||
|
'forgotPassword',
|
||||||
|
_t('Security.BUTTONSEND', 'Send me the password reset link')
|
||||||
|
)
|
||||||
|
),
|
||||||
|
false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user