kgood Posted August 9, 2018 Share Posted August 9, 2018 (edited) I have a react.js website that I want users to be able to login into and manage items they've purchased. I need a shop where users can make these purchases. So I guess my question is, can users login/create an account thru the site and still access prestaShop without having to login again there? Edited August 9, 2018 by kgood (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted August 9, 2018 Share Posted August 9, 2018 (edited) You can use the axios library to quickly post and capture the session cookie (saved in browser): import axios from 'axios'; import qs from 'qs'; export const logMeIn = async (email, passwd) { const { data } = await axios.post('https://myprestastore/authentication', qs.stringify({ SubmitLogin: true, email, passwd })); // Do something with the login response } Edited August 9, 2018 by Guest typo (see edit history) Link to comment Share on other sites More sharing options...
kgood Posted August 9, 2018 Author Share Posted August 9, 2018 Thanks for your response PrestaRalph. So when you login to the prestaShop it creates a session cookie and creates an account in the database for that user correct? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now