function login($l) { if (is_object($l)) { $this->addInfo($data = $l->get()); return parent::login($data['email']); } return parent::login($l); }