From b5c4e99cb1a2e5bb5cf6d38192d677843b1acd80 Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 20 Mar 2025 22:17:38 +0000 Subject: fix various htmx navigation / page reloads also i added a UserAccount::setPassword because i felt like it --- routes/user_auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/user_auth.php') diff --git a/routes/user_auth.php b/routes/user_auth.php index 49e138b..3c3b76c 100644 --- a/routes/user_auth.php +++ b/routes/user_auth.php @@ -19,7 +19,7 @@ Router::getInstance()->mount('/login', function (array $args) { // success $session = Session::create($user); $session->setCookie(isset($_POST['rememberSession'])); - throw new TemporaryRedirect('/'); + throw new TemporaryRedirect('/feed/home?fl=1'); } } @@ -37,5 +37,5 @@ Router::getInstance()->mount('/logout', function (array $args) { $session->clearCookie(); $session->remove(); } - throw new TemporaryRedirect('/'); + throw new TemporaryRedirect('/feed/global?fl=1'); }); \ No newline at end of file -- cgit v1.3