mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 09:05:46 +00:00
FIX: Lost password response
This commit is contained in:
parent
5efdcfb0e5
commit
0e152eef6e
@ -45,12 +45,15 @@ class LostPasswordHandlerExtension extends LostPasswordHandler
|
|||||||
? 'Thank you! A reset link has been sent to \''.$email.'\', provided an account exists for this email address.'
|
? 'Thank you! A reset link has been sent to \''.$email.'\', provided an account exists for this email address.'
|
||||||
: $message;
|
: $message;
|
||||||
|
|
||||||
|
$fragment = DBField::create_field('HTMLFragment', "<p>$message</p>");
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'Title' => _t(
|
'Title' => _t(
|
||||||
'SilverStripe\\Security\\Security.PASSWORDRESETSENTHEADER',
|
'SilverStripe\\Security\\Security.PASSWORDRESETSENTHEADER',
|
||||||
"Password reset link sent".($email ? ' to \''.$email.'\'' : '')
|
"Password reset link sent".($email ? ' to \''.$email.'\'' : '')
|
||||||
),
|
),
|
||||||
'ElementalArea' => DBField::create_field('HTMLFragment', "<p>$message</p>"),
|
'ElementalArea' => $fragment,
|
||||||
|
'Content' => $fragment,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user