diff --git a/application/controllers/AuthenticationController.php b/application/controllers/AuthenticationController.php index 3e8843722..c6fedb57c 100644 --- a/application/controllers/AuthenticationController.php +++ b/application/controllers/AuthenticationController.php @@ -74,6 +74,7 @@ class AuthenticationController extends Controller AuthenticationHook::triggerLogout($auth->getUser()); $auth->removeAuthorization(); if ($isExternalUser) { + $this->view->layout()->setLayout('external-logout'); $this->getResponse()->setHttpResponseCode(401); } else { $this->redirectToLogin(); diff --git a/application/layouts/scripts/external-logout.phtml b/application/layouts/scripts/external-logout.phtml new file mode 100644 index 000000000..a1df8b7ba --- /dev/null +++ b/application/layouts/scripts/external-logout.phtml @@ -0,0 +1,33 @@ +language; +$showFullscreen = $this->layout()->showFullscreen; +$innerLayoutScript = $this->layout()->innerLayout . '.phtml'; + +?> + + + + + + + + + <?= $this->title ? $this->escape($this->title) : $this->defaultTitle ?> + + + + + + + + + +
+ render($innerLayoutScript); ?> +
+ + diff --git a/application/views/scripts/authentication/logout.phtml b/application/views/scripts/authentication/logout.phtml index f7ad84b8c..d4bd78e01 100644 --- a/application/views/scripts/authentication/logout.phtml +++ b/application/views/scripts/authentication/logout.phtml @@ -8,6 +8,7 @@ logged-in user this JavaScript provides a workaround to force a new authentication prompt in most browsers. -->
+
translate('Logging out...'); ?>
@@ -19,7 +20,7 @@
- translate('Login'); ?> + translate('Login'); ?>
+