/** * Sets the 'confirmed' field of the user with the matching code to true. * * @param string $code * * @return bool Success */ public function confirm($code) { return $this->repo->confirmByCode($code); }