diff --git a/frontend/bootloader.html b/frontend/bootloader.html
new file mode 100644
index 0000000..accfad3
--- /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?