Jump to content

Login customer via webservice


tinhyeuphonui

Recommended Posts

Link to comment
Share on other sites

2 minutes ago, ndiaga said:

Hi,

 

You need to encrypt passwords before sending them in URL .

Here is an example:


/** @var \PrestaShop\PrestaShop\Core\Crypto\Hashing $crypto */
        $crypto = ServiceLocator::get('\\PrestaShop\\PrestaShop\\Core\\Crypto\\Hashing');
        if ($this->id == 0 || $this->passwd != $passwd) {
            $this->passwd = $crypto->hash($passwd);
        }

 

Thanks for your feedback. But i used this way. encrypt passwords is : $2y$10$mYmuptbrwNT3qBTucHbN3e3JhBel/jP3XAHq8eaWxxxxx

then i used webservice --> reponse null. (sorry my english not good).

Important, i using react native and customer information to login and register should encrypt the password as the above example is impossible.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...