friendship ended with social-app. php is my new best friend

if no username just render it

Changed files
+11
+11
index.php
···
});
Flight::route('/login', function(): void {
+
if (!array_key_exists('username', $_GET)) {
+
$latte = new Latte\Engine;
+
$latte->render('./templates/login.latte', array_merge(Flight::get('standardParams'), [
+
'mainClass' => 'form',
+
'ogtitle' => SITE_TITLE." | login",
+
'ogdesc' => SITE_DESC,
+
'ogimage' => '',
+
'ogurl' => 'https://'.SITE_DOMAIN.'/login'
+
]));
+
die(1);
+
}
$username = $_GET['username'];
$bskyToucher = new BskyToucher();
$userInfo = $bskyToucher->getUserInfo($username);