summaryrefslogtreecommitdiff
path: root/src/web/_controller/apps/profile.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-06-01 00:39:10 -0400
committerFreya Murphy <freya@freyacat.org>2024-06-01 00:39:22 -0400
commit66281a4db6a8c0b90efb26d13a40834de934a73e (patch)
treeb0632066111b04a72babcbcdfc68c924a07ec93b /src/web/_controller/apps/profile.php
parentfix date (diff)
downloadxssbook2-66281a4db6a8c0b90efb26d13a40834de934a73e.tar.gz
xssbook2-66281a4db6a8c0b90efb26d13a40834de934a73e.tar.bz2
xssbook2-66281a4db6a8c0b90efb26d13a40834de934a73e.zip
profile stuff
Diffstat (limited to '')
-rw-r--r--src/web/_controller/apps/profile.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web/_controller/apps/profile.php b/src/web/_controller/apps/profile.php
index 3bc9a91..9e9fca6 100644
--- a/src/web/_controller/apps/profile.php
+++ b/src/web/_controller/apps/profile.php
@@ -22,6 +22,11 @@ class Profile_controller extends Controller {
}
public function index(): void {
+
+ if ($this->main->user() && !isset($_GET['id'])) {
+ $this->redirect('/profile?id=' . $this->main->user()['id']);
+ }
+
parent::index();
$data = $this->profile_model->get_data();