store = $store; } public function validateUser($email, $pass){ if(!is_array($user = $this->store->getUser($email))){ return false; } if($user['pass'] == $pass){ return true; } $this->store->notifyPasswordFailure($email); return false; } }