* @NoCSRFRequired
*
* @param string $token
- * @param string $uid
+ * @param string $userId
*/
- public function resetform($token, $uid) {
+ public function resetform($token, $userId) {
return new TemplateResponse(
'core/lostpassword',
'resetpassword',
array(
'isEncrypted' => $this->isDataEncrypted,
- 'link' => $this->getLink('core.lost.setPassword', $uid, $token),
+ 'link' => $this->getLink('core.lost.setPassword', $userId, $token),
),
'guest'
);
protected function getLink($route, $user, $token){
$parameters = array(
'token' => $token,
- 'uid' => $user
+ 'userId' => $user
);
$link = $this->urlGenerator->linkToRoute($route, $parameters);
$application = new Application();
$application->registerRoutes($this, array('routes' => array(
array('name' => 'lost#email', 'url' => '/lostpassword/email', 'verb' => 'POST'),
- array('name' => 'lost#resetform', 'url' => '/lostpassword/reset/form/{token}/{uid}', 'verb' => 'GET'),
- array('name' => 'lost#setPassword', 'url' => '/lostpassword/set/{token}/{uid}', 'verb' => 'POST'),
+ array('name' => 'lost#resetform', 'url' => '/lostpassword/reset/form/{token}/{userId}', 'verb' => 'GET'),
+ array('name' => 'lost#setPassword', 'url' => '/lostpassword/set/{token}/{userId}', 'verb' => 'POST'),
)
));