Unable to find login() function location in opencart -
private function validate() { if (!$this->user->login(@$this->request->post['username'], @$this->request->post['password'])) { $this->error['warning'] = $this->language->get('error_login'); }
if (!$this->error) { return true; } else { return false; } }
here after function called($this->user->login()) wanted know function located.
for admin part:
$this->user
represents user of admin area, it's instance of class user
located in file <oc_root>/system/library/user.php
for catalog part:
there no such member named $this->user
, there member named $this->customer
represents user of system catalog (a customer) , it's instance of class customer
located in file <oc_root>/system/library/customer.php
Comments
Post a Comment