From d76fea793abd1011ad2adad8d0e9b8fe01a8ebf7 Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Thu, 5 Feb 2026 22:18:27 +0100 Subject: [PATCH 1/2] add webId to redirect, add bootloader in dashboard --- frontend/bootloader.html | 109 +++++++++++++++++++++++++++++++++++++++ lib/Routes/Account.php | 5 +- 2 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 frontend/bootloader.html diff --git a/frontend/bootloader.html b/frontend/bootloader.html new file mode 100644 index 0000000..f47915a --- /dev/null +++ b/frontend/bootloader.html @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + \ No newline at end of file diff --git a/lib/Routes/Account.php b/lib/Routes/Account.php index 87ed8c8..bac555f 100644 --- a/lib/Routes/Account.php +++ b/lib/Routes/Account.php @@ -27,7 +27,7 @@ public static function requireLoggedInUser() { public static function respondToDashboard() { $user = User::getUser(Session::getLoggedInUser()); - echo "Logged in as " . $user['webId']; + include_once(FRONTENDDIR . "bootloader.html"); } public static function respondToLogout() { @@ -170,8 +170,9 @@ public static function respondToLogin() { } if (User::checkPassword($_POST['username'], $_POST['password'])) { Session::start($_POST['username']); + $user = User::getUser($_POST['username']); if (!isset($_POST['redirect_uri']) || $_POST['redirect_uri'] === '') { - header("Location: /dashboard/"); + header("Location: /dashboard/#webId=" . urlencode($user['webId'])); exit(); } header("Location: " . urldecode($_POST['redirect_uri'])); // FIXME: Do we need to harden this? From 5108f3ec9704ba793b2951f5256af01e762a469f Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Tue, 10 Feb 2026 16:24:20 +0100 Subject: [PATCH 2/2] add bootloader --- frontend/bootloader.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/bootloader.html b/frontend/bootloader.html index f47915a..accfad3 100644 --- a/frontend/bootloader.html +++ b/frontend/bootloader.html @@ -79,8 +79,8 @@ - - + +