Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Customers cannot login using my custom login box

    I have a site here

    I am unable to login as a customer. I have been working on the site on and off and so I may have accidently done something but not sure what Or how long this has been like this. It was a paypal error that alerted me to this issue. (There is/was currently a paypal API status error affecting Paypal Express checkout)

    I have been through the forum and tried lots of things but I still get - 'There was a security error when trying to login..'

    I am using Zen cart - v1.3.9c

    What should I do? check?

    Thanks

  2. #2
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Customers cannot login

    I Have now managed to login but I tried a second time (logged out then back in) and it didn't work again!!

    Odd! It seems to be a bit random!

  3. #3
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Customers cannot login

    Can't login via the login section below the header but then I can login within the main login page...

    Any ideas how to sort this?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Customers cannot login

    Any ideas how to sort this?
    Can't even see it

    Post a link to your install

    Provide what browsers you have this issue with and their versions

    Also did you check the similar issue threads listed at the bottom of this post??
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Customers cannot login

    You can't see it??? The link in my first post works ok for me...

    I have tried IE and firefox...I can't login via the login bar at the top below my header...

    I have been through loads of threads on the forum and tried lots of things but nothing has solved this issue with the login bar...

    Any help?

    Thanks

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Customers cannot login

    Your login bar contains a hard-coded securityToken field, which contains a value that's expired. Thus the form will never work.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Customers cannot login using my custom login box

    Thank you DrByte for your reply and looking at this for me...

    So what do I need to do to get it to work?

    Thanks

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Customers cannot login using my custom login box

    It appears that you simply viewed the raw source of a login form displayed in your browser, and dumped that into your custom login box, instead of using the components from the login template itself, ie: tpl_login_default.php
    Thus you're left with permanent values that you've put into the form fields, and they never change. Thus, the form is being rejected because the securityToken is not truly valid. That's exactly what you want, since allowing expired values would leave you vulnerable to XSS risks and other unpleasant security problems.

    So, instead of copying raw HTML, copy the relevant PHP code from the real template instead.
    In this particular case, you need to replicate the securityToken field. ie: line 50 of tpl_login_default.php as of v1.3.9h

    Keep the same issue in mind for future cases when you're tempted to just copy raw HTML without paying attention to the business intelligence behind how that HTML was generated.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Customers cannot login using my custom login box

    Thanks again for your help...

    So I need to add this line
    Code:
    <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
    into where and in which file?

    Sorry, I'm not quite getting it..

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Customers cannot login using my custom login box

    Whatever <form> element you added to make your custom login box, in whatever file you put that code when you did it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 10
    Last Post: 16 Apr 2011, 10:09 PM
  2. customers cannot login
    By deficit in forum Managing Customers and Orders
    Replies: 5
    Last Post: 2 Jul 2009, 04:31 PM
  3. Customers Cannot login
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Oct 2008, 08:23 PM
  4. Login using Safari cannot login with firefox or IE
    By ambivert in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 18 Jul 2007, 07:11 PM
  5. customers cannot login !!
    By herot in forum Managing Customers and Orders
    Replies: 6
    Last Post: 15 Nov 2006, 08:29 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR