feat: add monthly budget field and statistics (#329)

This commit is contained in:
Miguel Ribeiro
2024-05-17 23:14:17 +02:00
committed by GitHub
parent e21500a719
commit b622434ca0
24 changed files with 286 additions and 14 deletions
+3
View File
@@ -12,6 +12,8 @@
if ($userData === false) {
header('Location: logout.php');
exit();
} else {
$_SESSION['userId'] = $userData['id'];
}
if ($userData['avatar'] == "") {
@@ -55,6 +57,7 @@
$_SESSION['token'] = $token;
$_SESSION['loggedin'] = true;
$_SESSION['main_currency'] = $main_currency;
$_SESSION['userId'] = $userId;
} else {
$db->close();
header("Location: logout.php");