diff --git a/module/VuFind/src/VuFind/Controller/ExternalAuthController.php b/module/VuFind/src/VuFind/Controller/ExternalAuthController.php index 76f03f034661c9334e54df3a90a892febff3c60d..ef712fde309aa9a185efc817057e119a43e4d05b 100644 --- a/module/VuFind/src/VuFind/Controller/ExternalAuthController.php +++ b/module/VuFind/src/VuFind/Controller/ExternalAuthController.php @@ -74,12 +74,11 @@ class ExternalAuthController extends AbstractBase ); return $view; } - $username = end(explode(':', $user->username, 2)); $url = $this->params()->fromPost( 'url', $this->params()->fromQuery('url') ); return $this->redirect()->toUrl( - $this->createEzproxyTicketUrl($username, $url) + $this->createEzproxyTicketUrl($user->username, $url) ); } return $this->forceLogin('external_auth_login_message');