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

Popular posts from this blog

javascript - How to diff two immutable objects -

javascript - React.js: onClick function from child to parent -

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -