Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Automatic login onclick of link from email account

    Hello,
    I want auto login feature in my zencart web site.
    The feature I need is suppose customer receive an email from e-shop.
    Email has one link which redirect customers to e-shop .
    On click of that link customer automatically sign-in(login) in the e-shop.

    Any one suggest me how that can be done.

    Thx

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: Automatic login onclick of link from email account

    I'd recommend adding an extra column to the customer table to store an MD5 encryted version of their email address concatonated with their encryted password.

    Then either extend the header_php file for the existing login page, or create a new auto_login page based on it, that that looks for this as a parameter, reads the customer table to find the relevant customer and logs them in using the code in the longin page's header_php file.

    This is a little fiddly and will require some database and PHP knowledge, as well as a basic understanding of how Zen Cart pages are constructed.

    Of course, you would also be allowing anybody who intercepts the email to also login as the customer ... are you OK with that?
    Last edited by kuroi; 30 Dec 2008 at 01:46 PM.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Replies: 4
    Last Post: 5 Aug 2008, 01:07 PM
  2. automatic login link
    By djdavedawson in forum General Questions
    Replies: 0
    Last Post: 18 Jul 2008, 05:04 PM
  3. login - create account - user's email address
    By canadianwebstar in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jun 2006, 01:59 PM
  4. Replies: 1
    Last Post: 29 May 2006, 05:44 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
  •