]> source.dussan.org Git - nextcloud-server.git/commitdiff
complete renaming uid to userId
authorMorris Jobke <hey@morrisjobke.de>
Fri, 13 Jun 2014 14:18:21 +0000 (16:18 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 13 Jun 2014 14:18:21 +0000 (16:18 +0200)
core/lostpassword/controller/lostcontroller.php
core/routes.php

index db94eeadeac6a4743521022e3c9905d40614c34d..1cab87432ca9095a297e79a535f2fe2b5abaef1d 100644 (file)
@@ -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);
 
index ce0103e3ee7bf55615029cdd230b04d553d10a14..d08bd105a1478dd628014eea20bfe36a02c37795 100644 (file)
@@ -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'),
        )
 ));