Post by LZone » Sat Sep 22, 2018 5:27 pm

Dear Team I'm trying to login by API link https://www.jochaho.pk/admin/index.php?route=api/login but it shows ERROR:
You do not have permission to access this page, please refer to your system administrator. even I have given all access from "Access Permission" & "Modify Permission" .Also see attache file .Please guide how to resolve it.

Attachments

Screenshot_API.jpg

Screenshot_API.jpg (41.69 KiB) Viewed 2951 times


Newbie

Posts

Joined
Sat Sep 22, 2018 5:16 pm

Post by straightlight » Sat Sep 22, 2018 8:51 pm

The API login will be decommissioned on the latest OC version once it becomes stable. Other simplified methods will be used in order to connect via the local API.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by LZone » Mon Sep 24, 2018 3:15 pm

https://www.jochaho.pk/index.php?route=api/login I have found some default bugs I have fixed those

1- catalog/model/account/api.php
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api` WHERE `username` = '" . $this->db->escape($username) . "' AND `key` = '" . $this->db->escape($key) . "' AND status = '1'");

2- catalog/controller/api/login.php
$session = new Session($config->get('session_engine'), $this->registry);

3- See attached file when I tried this it shows only [ ]. Can you guide why it shows only [ ]?

Attachments

Screenshot_S2.jpg

Screenshot_S2.jpg (15.18 KiB) Viewed 2861 times

Screenshot_S1.jpg

Screenshot_S1.jpg (68.56 KiB) Viewed 2861 times


Newbie

Posts

Joined
Sat Sep 22, 2018 5:16 pm

Post by straightlight » Mon Sep 24, 2018 7:54 pm

I wouldn't really bother with that since the API login controller is no longer supported. The best solution would be to await the stable release of OC v3.1.0.0 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by davidcropley » Mon Sep 24, 2018 10:45 pm

Apparently 3.1.0.0 has been released recently now. Still pluggin away with my old 2.3.0.2 system though - I really should sort it out sometime!
O0

New member

Posts

Joined
Thu Jul 12, 2012 2:18 am

Post by straightlight » Tue Sep 25, 2018 2:39 am

davidcropley wrote:
Mon Sep 24, 2018 10:45 pm
Apparently 3.1.0.0 has been released recently now. Still pluggin away with my old 2.3.0.2 system though - I really should sort it out sometime!
O0
It's still alpha at this time.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 437 guests