[Pkg-owncloud-commits] [owncloud] 89/223: complete renaming uid to userId
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit ed8b7fc1019d48741b11dd25e614677a80d0a89f
Author: Morris Jobke <hey at morrisjobke.de>
Date: Fri Jun 13 16:18:21 2014 +0200
complete renaming uid to userId
---
core/lostpassword/controller/lostcontroller.php | 8 ++++----
core/routes.php | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/core/lostpassword/controller/lostcontroller.php b/core/lostpassword/controller/lostcontroller.php
index db94eea..1cab874 100644
--- a/core/lostpassword/controller/lostcontroller.php
+++ b/core/lostpassword/controller/lostcontroller.php
@@ -57,15 +57,15 @@ class LostController extends Controller {
* @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'
);
@@ -178,7 +178,7 @@ class LostController extends Controller {
protected function getLink($route, $user, $token){
$parameters = array(
'token' => $token,
- 'uid' => $user
+ 'userId' => $user
);
$link = $this->urlGenerator->linkToRoute($route, $parameters);
diff --git a/core/routes.php b/core/routes.php
index ce0103e..d08bd10 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -11,8 +11,8 @@ use OC\Core\LostPassword\Application;
$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'),
)
));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list