Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Setting ID = -1 on Security/lostpassword to avoid showing topl…

…evel navigation (see #5086) (from r99479)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102864 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit e67c8d8c37e96c9d63b28880633caf3cd5f1515d 1 parent 720bcfa
Ingo Schommer chillu authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  security/Security.php
1  security/Security.php
View
@@ -417,6 +417,7 @@ public function lostpassword() {
$tmpPage = new Page();
$tmpPage->Title = _t('Security.LOSTPASSWORDHEADER', 'Lost Password');
$tmpPage->URLSegment = 'Security';
+ $tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children
$controller = new Page_Controller($tmpPage);
$controller->init();
Please sign in to comment.
Something went wrong with that request. Please try again.