Tag Archives: Zen Cart Customer can’t log in

Zen Cart FIX – Customer can’t log in. Error msg: There was a security error when trying to login.

23 Nov

Problem: Customer can’t log in
Error message: “There was a security error when trying to login.”

FIX: http://tutorials.zen-cart.com/index.php?article=312

ALL new templates need the following code added to their tpl_login_default.php file

  • line 50: <?php echo zen_draw_hidden_field(‘securityToken’, $_SESSION['securityToken']); ?>
  • line 79: <?php echo zen_draw_hidden_field(‘securityToken’, $_SESSION['securityToken']); ?>

(Original master file is here: root > includes > templates > template_default > templates > tpl_login_default.php)