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.
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 (41.69 KiB) Viewed 2951 times
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
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 [ ]?
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 (15.18 KiB) Viewed 2861 times
Screenshot_S1.jpg (68.56 KiB) Viewed 2861 times
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
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!
It's still alpha at this time.davidcropley wrote: ↑Mon Sep 24, 2018 10:45 pmApparently 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!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 437 guests