Hi,
I have set up an Opencart store which needs to be accessed from a different application. Since the User would have logged into the main application, we do not want him to login again into the Opencart store. Can we auto login to Opencart by using Username parameters passed via an URL?
This is a very urgent requirement. Has anybody worked on something similar? Your help is greatly appreciated.
Regards,
Namitha.
The easiest way is to copy the index.php file for the admin to a different naming, followed by removing the preaction for login check. That will allow you to access things without logging in.Namitha wrote:Hi,
I have set up an Opencart store which needs to be accessed from a different application. Since the User would have logged into the main application, we do not want him to login again into the Opencart store. Can we auto login to Opencart by using Username parameters passed via an URL?
This is a very urgent requirement. Has anybody worked on something similar? Your help is greatly appreciated.
Regards,
Namitha.
If you mean admin Users, then "the User would have logged into the main application" and would need to be able to access both admin and his own customer account(s). If you mean customers (in OC Users are admins), then "the User would have logged into the main application" and would need to be able to access only his own customer account(s).
What MarketInSG suggested can be adapted, separately, to each of the two OC index.php files. You might be able to "removing the preaction for login check" without even renaming the index.php files but would have to tinker with that. You would want to be especially careful to prevent unauthorized access to admin.
What MarketInSG suggested can be adapted, separately, to each of the two OC index.php files. You might be able to "removing the preaction for login check" without even renaming the index.php files but would have to tinker with that. You would want to be especially careful to prevent unauthorized access to admin.
You can post username from that application to your opencart login page
Opencart performance optimizations
homepage https://www.fmform.com
Help page https://help.fmform.com
Who is online
Users browsing this forum: No registered users and 20 guests