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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -