diff --git a/src/ZfcUser/Controller/RedirectCallback.php b/src/ZfcUser/Controller/RedirectCallback.php index 925f6ec3..273fea85 100644 --- a/src/ZfcUser/Controller/RedirectCallback.php +++ b/src/ZfcUser/Controller/RedirectCallback.php @@ -103,6 +103,7 @@ protected function getRedirect($currentRoute, $redirect = false) switch ($currentRoute) { case 'zfcuser/register': case 'zfcuser/login': + case 'zfcuser/authenticate': $route = ($redirect) ?: $this->options->getLoginRedirectRoute(); return $this->router->assemble(array(), array('name' => $route)); break; diff --git a/tests/ZfcUserTest/Controller/RedirectCallbackTest.php b/tests/ZfcUserTest/Controller/RedirectCallbackTest.php index 236352c1..86e9a14c 100644 --- a/tests/ZfcUserTest/Controller/RedirectCallbackTest.php +++ b/tests/ZfcUserTest/Controller/RedirectCallbackTest.php @@ -226,6 +226,7 @@ public function providerGetRedirectNoRedirectParam() { return array( array('zfcuser/login', 'zfcuser', '/user', 'getLoginRedirectRoute'), + array('zfcuser/authenticate', 'zfcuser', '/user', 'getLoginRedirectRoute'), array('zfcuser/logout', 'zfcuser/login', '/user/login', 'getLogoutRedirectRoute'), array('testDefault', 'zfcuser', '/home', false), );