Prestashop 1.7 webservice登录客户

时间:2017-01-08 02:11:54

标签: prestashop prestashop-1.7

如何通过Prestashop中的webservice登录客户 1.7

Prestashop 1.6(1.7不工作):

    define('_COOKIE_KEY_', 'OXFQDX3YYM8MJH1RYGAQHH2LX79ZNRX');
    $md5_password = md5(_COOKIE_KEY_+password);
  

http://yourdomainname.com/api/customers/   ?过滤器[邮件] =user@yourdomainname.com   &安培;过滤[passwd的] = $ md5_password

1 个答案:

答案 0 :(得分:0)

我的解决方案:

用PHP检查密码:

1)通过电子邮件获取客户:

  

http://domain.com/api/customers?filter[email]=customer@domain.com

2)验证" passwd":

  

password_verify(the_input_password,passwd);

PASSWORD_VERIFY DOCS:

  

http://php.net/manual/es/function.password-verify.php