Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2011
    Posts
    1
    Plugin Contributions
    0

    Default Password integration with another site

    Hi all,

    I currently have a Zen Cart installation and want to link those logins to another site with a login page.

    Currently the login on that site uses md5.

    PHP Code:
    $row mysql_fetch_assoc(mysql_query("SELECT customers_id,customers_nick,password FROM customers WHERE customers_nick='{$_POST['username']}' AND customers_password='".md5($_POST['password'])."'")); 
    Is there a way i can change that from md5 to the Zen Cart md5 plus salt?

    I have tried everything but nothing has worked yet.

    Thanks

    Nick

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

    Default Re: Zen Cart password integration with another site

    Not as straightforwardly as the code snippet you've shown as Zen Cart's approach is too sophisticated to embed into a SQL command.

    But then if I were you, I'd very uncomfortable with the way that snippet appears to use unsanitized input directly in a database query.
    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. Help with site admin ID and password
    By dfontana in forum General Questions
    Replies: 4
    Last Post: 2 Jul 2009, 01:11 PM
  2. Yet another integration problem...
    By srbin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Oct 2006, 11:13 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