Skip to content

Commit

Permalink
Page Content loads before login
Browse files Browse the repository at this point in the history
  • Loading branch information
gburton committed Jul 2, 2019
1 parent e87fb7b commit 3857342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions login.php
Expand Up @@ -26,6 +26,8 @@
// login content module must return $login_customer_id as an integer after successful customer authentication
$login_customer_id = false;

$page_content = $oscTemplate->getContent('login');

if ( is_int($login_customer_id) && ($login_customer_id > 0) ) {
if (SESSION_RECREATE == 'True') {
tep_session_recreate();
Expand Down Expand Up @@ -66,8 +68,6 @@
tep_redirect(tep_href_link('index.php'));
}

$page_content = $oscTemplate->getContent('login');

require('includes/languages/' . $language . '/login.php');

$breadcrumb->add(NAVBAR_TITLE, tep_href_link('login.php', '', 'SSL'));
Expand Down

0 comments on commit 3857342

Please sign in to comment.