Post by yfleury » Sun Oct 29, 2017 11:50 am

Hi!
I have un web apps with login password. I have just install open cart 3.0.2.0
I need the same login and password for web apps and open cart.
My thought is login in web apps and verify in oc_customer to validate password is ok. But password is encrypted.
So, I need to encrypt password. How can I do it?

English is not my primary language.

Newbie

Posts

Joined
Wed Oct 25, 2017 6:56 pm

Post by yfleury » Tue Oct 31, 2017 8:40 am

yfleury wrote:
Sun Oct 29, 2017 11:50 am
Hi!
I have un web apps with login password. I have just install open cart 3.0.2.0
I need the same login and password for web apps and open cart.
My thought is login in web apps and verify in oc_customer to validate password is ok. But password is encrypted.
So, I need to encrypt password. How can I do it?

English is not my primary language.
I find the way to login in my web apps with login and password of open cart.
User send email and password with <form> POST.
SQL: select * from oc_customer where email = "email@fai.com"
I compare password and from customer table to sha1($salt.sha1($salt.sha1($_POST["password"])))
I hope that could be help someone

Newbie

Posts

Joined
Wed Oct 25, 2017 6:56 pm
Who is online

Users browsing this forum: Bing [Bot] and 356 guests