public function token() { return $this->userToken->getToken(); }
/** * @todo Change this URL to a route in the javascript app that will perform * the API request since the API expects the token as a POST parameter * * @return string */ public function url() { $parameters = ['id' => $this->userToken->getUserId(), 'token' => $this->userToken->getToken()]; $url = $this->urlGenerator->generate('reset-password', $parameters, UrlGenerator::ABSOLUTE_URL); return $url; }