]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use correct route instead
authorLukas Reschke <lukas@owncloud.com>
Fri, 24 Oct 2014 09:45:30 +0000 (11:45 +0200)
committerLukas Reschke <lukas@owncloud.com>
Mon, 17 Nov 2014 16:50:19 +0000 (17:50 +0100)
THX @schiesbn
(I should setup a mail server on my local system...)

core/lostpassword/controller/lostcontroller.php
tests/core/lostpassword/controller/lostcontrollertest.php

index eff7a1f572869785bd10dbbeab958605333e68b0..ec52108ad49c5cb28a431672f8695cc9f76d69bf 100644 (file)
@@ -189,7 +189,7 @@ class LostController extends Controller {
                        ISecureRandom::CHAR_UPPER);
                $this->config->setUserValue($user, 'owncloud', 'lostpassword', $token);
 
-               $link = $this->urlGenerator->linkToRouteAbsolute('core.lost.setPassword', array('userId' => $user, 'token' => $token));
+               $link = $this->urlGenerator->linkToRouteAbsolute('core.lost.resetform', array('userId' => $user, 'token' => $token));
 
                $tmpl = new \OC_Template('core/lostpassword', 'email');
                $tmpl->assign('link', $link, false);
index c513ce17c7e09d162c91c80ad99335babc818aa4..5da9e5ce48d5e4c707267bb42a12744bf352f078 100644 (file)
@@ -129,7 +129,7 @@ class LostControllerTest extends \PHPUnit_Framework_TestCase {
                $this->container['URLGenerator']
                        ->expects($this->once())
                        ->method('linkToRouteAbsolute')
-                       ->with('core.lost.setPassword', array('userId' => 'ExistingUser', 'token' => 'ThisIsMaybeANotSoSecretToken!'))
+                       ->with('core.lost.resetform', array('userId' => 'ExistingUser', 'token' => 'ThisIsMaybeANotSoSecretToken!'))
                        ->will($this->returnValue('https://ownCloud.com/index.php/lostpassword/'));
 
                $response = $this->lostController->email('ExistingUser');