diff --git a/account.php b/account.php
index 450c42e..2b55af1 100644
--- a/account.php
+++ b/account.php
@@ -30,7 +30,7 @@
unset($_SESSION['err']);
}
- if ($user_info->is_loggedin()) {
+ if ($user_info->is_loggedin($conn)) {
?>
Profile
diff --git a/app/account/account.php b/app/account/account.php
index d86038a..6509f8b 100644
--- a/app/account/account.php
+++ b/app/account/account.php
@@ -345,7 +345,7 @@ if (isset($_POST['submit_signup'])) {
} else {
?>
-
- get_user_info($conn, $_SESSION['id']);
+
+ if (isset($user['pfp_path'])) {
+ ?>
+
+
+
+ is_admin($conn, $_SESSION['id'])) {
$check_sanity = $sanity->get_results();
@@ -43,6 +52,8 @@
diff --git a/password-reset.php b/password-reset.php
index 1c01358..824d073 100644
--- a/password-reset.php
+++ b/password-reset.php
@@ -6,7 +6,7 @@
$user_info = new Account();
// Check if the user is logged in, otherwise redirect to login page
- if ($user_info->is_loggedin() != true) {
+ if ($user_info->is_loggedin($conn) == false) {
header("location: account.php");
}
?>
@@ -26,6 +26,8 @@
After reset, you will be kicked out to login again