diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index 233e5ef0ae6db1529cbf5fc12ee969388faaa78e..6339f262a29cc2ece93e7ff0b2a45187795f39d2 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -134,6 +134,10 @@ class MyResearchController extends AbstractBase */ public function accountAction() { + // If the user is already logged in, don't let them create an account: + if ($this->getAuthManager()->isLoggedIn()) { + return $this->redirect()->toRoute('myresearch-home'); + } // if the current auth class proxies others, we'll get the proxied // auth method as a querystring parameter. $method = trim($this->params()->fromQuery('auth_method'));