aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/src/Error/Handler/AuthExpiredExceptionHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/account/src/Error/Handler/AuthExpiredExceptionHandler.php')
-rw-r--r--main/app/sprinkles/account/src/Error/Handler/AuthExpiredExceptionHandler.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/app/sprinkles/account/src/Error/Handler/AuthExpiredExceptionHandler.php b/main/app/sprinkles/account/src/Error/Handler/AuthExpiredExceptionHandler.php
index c651f77..fd3ca1f 100644
--- a/main/app/sprinkles/account/src/Error/Handler/AuthExpiredExceptionHandler.php
+++ b/main/app/sprinkles/account/src/Error/Handler/AuthExpiredExceptionHandler.php
@@ -5,6 +5,7 @@
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
+
namespace UserFrosting\Sprinkle\Account\Error\Handler;
use UserFrosting\Sprinkle\Core\Error\Handler\HttpExceptionHandler;
@@ -20,8 +21,7 @@ class AuthExpiredExceptionHandler extends HttpExceptionHandler
/**
* Custom handling for requests that did not pass authentication.
*/
- public function handle()
- {
+ public function handle() {
// For auth expired exceptions, we always add messages to the alert stream.
$this->writeAlerts();
@@ -33,11 +33,11 @@ class AuthExpiredExceptionHandler extends HttpExceptionHandler
$path = $uri->getPath();
$query = $uri->getQuery();
$fragment = $uri->getFragment();
-
+
$path = $path
. ($query ? '?' . $query : '')
. ($fragment ? '#' . $fragment : '');
-
+
$loginPage = $this->ci->router->pathFor('login', [], [
'redirect' => $path
]);