Automatic login onclick of link from email account
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.
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.
By zcnb in forum General Questions
Last Post: 5 Aug 2008, 01:07 PM
By djdavedawson in forum General Questions
Last Post: 18 Jul 2008, 05:04 PM
By canadianwebstar in forum Templates, Stylesheets, Page Layout
Last Post: 8 Jun 2006, 01:59 PM
By langtu123 in forum General Questions
Last Post: 29 May 2006, 05:44 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC