mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Fix the password reset message to be shown consistently.
If we detect any of the password reset GET params, it's safe to assume that someone intended a password reset, regardless of other conditions.
This commit is contained in:
parent
7cf8e65309
commit
1a39f61598
@ -658,9 +658,8 @@ class Security extends Controller {
|
|||||||
'Form' => $this->ChangePasswordForm()));
|
'Form' => $this->ChangePasswordForm()));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// show an error message if the auto login token is invalid and the
|
// Show friendly message if it seems like the user arrived here via password reset feature.
|
||||||
// user is not logged in
|
if(isset($_REQUEST['m']) || isset($_REQUEST['t'])) {
|
||||||
if(!isset($_REQUEST['t']) || !$member) {
|
|
||||||
$customisedController = $controller->customise(
|
$customisedController = $controller->customise(
|
||||||
array('Content' =>
|
array('Content' =>
|
||||||
_t(
|
_t(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user