Skip to content

Commit

Permalink
Merge pull request #600 from Eye4web/missingLoginRedirectRoute
Browse files Browse the repository at this point in the history
Add zfcuser/authenticate to redirectCallback check
  • Loading branch information
Danielss89 committed Aug 17, 2015
2 parents acda2eb + a3ec479 commit 6bc1372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ZfcUser/Controller/RedirectCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions tests/ZfcUserTest/Controller/RedirectCallbackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
Expand Down

0 comments on commit 6bc1372

Please sign in to comment.