Thread: Login Box Error

Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2007
    Posts
    9
    Plugin Contributions
    0

    Default Login Box Error

    Hi!
    I'm having a security error when attempting to login via the login box.

    Here is the website:
    http://wildhavensoap.com/index.php

    Here is the error I get when trying to login:
    There was a security error when trying to login.
    It directs me to the login/create account page.

    Here is my code:
    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: tpl_login_box.php,v 1.0 2003/11/21 19:16:29 ajeh Exp $
    //
    // Designed for Zen Cart v1.00 Alpha
    // Created by: Linda McGrath ZenCart @ WebMakers.com
    // http://www.thewebmakerscorner.com
    
    // Updated to 1.3 standard (XHTML compliant) 2006/06/07  Rick Suffolk
    // Edited by: Ian Manson [email protected] 2006 08 13 to include some my account links when actually logged in
    // Updated 2007 12 10 for compatibility with v1.3.8
    
    $content = "<!--loginSideBox-->";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    
    if(!$_SESSION['customer_id']) {
    
       $content .=zen_draw_form('login_box', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'));
       $content .=LOGIN_BOX_EMAIL_ADDRESS . '<br />' . zen_draw_input_field('email_address', '', 'size="24"').'<br />';
       $content .=LOGIN_BOX_PASSWORD . '<br />' . zen_draw_password_field('password', '', 'size="24"') . '<br />';
       $content .='<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . LOGIN_BOX_PASSWORD_FORGOTTEN . '</a>' . '<br />' . '<a href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . LOGIN_BOX_CREATE_ACCOUNT . '</a>' . '<br />';
       $content .= zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);
       $content .='<div class="centeredContent">'.zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT).'</div>';
       $content .='</form>';
    }  else {
       
       $content .= '<ul>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT . '</a></li>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . LOGIN_BOX_SHOPPING_CART . '</a></li>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . LOGIN_BOX_LOGOFF . '</a></li>';
       $content .= '</ul>';
    }
    
    $content .= '</div>';
    
    ?>
    I do have the Security Token in there but I still get the error. Can anyone help me?

    Thank you in advance!
    Last edited by Ajeh; 1 Dec 2008 at 04:39 PM.

  2. #2
    Join Date
    Feb 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Login Box Error

    Bumping this up because I still have the error despite updating the login box mod.

    Can anyone help?

    Please?

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Login Box Error

    You are probably using a version which was not written for zen1.3.8. The code is missing the security token. Just upgrade the module
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Feb 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Login Box Error

    Thank you for your reply. I have done this, though, and it does have the security token in the code. But I still receive a security area.

    Any other ideas?

  5. #5
    Join Date
    Feb 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Login Box Error

    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: tpl_login_box.php,v 1.0 2003/11/21 19:16:29 ajeh Exp $
    //
    // Designed for Zen Cart v1.00 Alpha
    // Created by: Linda McGrath [email protected]
    // http://www.thewebmakerscorner.com
    
    // Updated to 1.3 standard (XHTML compliant) 2006/06/07  Rick Suffolk
    // Edited by: Ian Manson [email protected] 2006 08 13 to include some my account links when actually logged in
    // Updated 2007 12 10 for compatibility with v1.3.8
    
    $content = "<!--loginSideBox-->";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    
    if(!$_SESSION['customer_id']) {
    
       $content .=zen_draw_form('login_box', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'));
       $content .=LOGIN_BOX_EMAIL_ADDRESS . '<br />' . zen_draw_input_field('email_address', '', 'size="24"').'<br />';
       $content .=LOGIN_BOX_PASSWORD . '<br />' . zen_draw_password_field('password', '', 'size="24"') . '<br />';
       $content .='<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . LOGIN_BOX_PASSWORD_FORGOTTEN . '</a>' . '<br />' . '<a href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . LOGIN_BOX_CREATE_ACCOUNT . '</a>' . '<br />';
       $content .= zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);
       $content .='<div class="centeredContent">'.zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT).'</div>';
       $content .='</form>';
    }  else {
       
       $content .= '<ul>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT . '</a></li>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . LOGIN_BOX_SHOPPING_CART . '</a></li>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . LOGIN_BOX_LOGOFF . '</a></li>';
       $content .= '</ul>';
    }
    
    $content .= '</div>';
    
    ?>
    Here is what I have now...

  6. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Login Box Error

    No token found in your form. If you made changes, perhaps you are overriding the form and only made changes to the default one?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #7
    Join Date
    Feb 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Login Box Error

    hmmm...

    I thought this was the security token?
    $content .= zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);

    That is in there... Am I missing something?

    Thank you for your help!

  8. #8
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Login Box Error

    What I am saying is: no token is printed out in the html page (just view the source code of your site)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #9
    Join Date
    Feb 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Login Box Error

    Oh.

    I'm confused, then. How do I fix this?

    Please?
    This is my first ZenCart website, and I've muddled along and been able to figure things out until now... I'm just not sure what to do.

    Thanks,
    Christine

  10. #10
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Login Box Error

    Read my previous comment again:

    No token found in your form. If you made changes, perhaps you are overriding the form and only made changes to the default one?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. Customers cannot login using my custom login box
    By pb4 in forum General Questions
    Replies: 13
    Last Post: 29 Nov 2010, 11:33 AM
  2. Login box error on one "page"
    By mcarbone in forum Basic Configuration
    Replies: 4
    Last Post: 12 Mar 2010, 03:18 AM
  3. Lindas Login Box security error
    By HumDaddy in forum Addon Sideboxes
    Replies: 19
    Last Post: 22 Oct 2008, 04:43 AM
  4. Modify login box or create new account info box?
    By torgil in forum Addon Sideboxes
    Replies: 4
    Last Post: 8 Nov 2006, 12:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg