diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..1c13d28 --- /dev/null +++ b/TODO.md @@ -0,0 +1,41 @@ +1. Admin + - accounts + - famat.php L2: this + - import-account.php L48: bad + - bubbles + - createPDF.php L77: Implement team selection + - createPDF.php L144: make better + - competitions + - compTracker.php L136: Make this better, this is really, really bad! + - compTracker.php L181: Move functions out + - compTracker.php L197: I REALLY don't like this! I REALLY DON'T!!! + - compTracker.php L223: Do it right + - helper.php L59: Integrate "Comptition Fee" (not a generic payment) so that it is either paid or not + - reports + - comp-checkoff.php L54: Although this is admin only, make more secure + - comp-checkoff.php L89: make function + - comp-checkoff.php L91: make not bad +2. custom + - update background.png +3. docs + - update DOCS +4. img +5. shared + - accounts.php L9: implement into codebase + - accounts.php L273: comp info update (student and >=officer) + - accounts.php L286: Rethink end of school year + - accounts.php L299: implement getDivision function + - competitions.php L115: enumerate possibilities + - snippets.php L57: Reconsider placement (might need to move higher up in call list; ASK: "Should it be handled here?") + - snippets.php L199: use `second` parameter?? + - sql.php L15: Lord, the security + - transactions.php L3: implement into codebase + - transactions.php L57: review +6. student + - info.php L13: don't use $_POST['select-id'] + - info.php L77: This is bad and ugly and makes me want to cry. I hate my old code :( + - transactions.php L130: fix +7. favicon.ico + - update icon +8. index.php + - create a homepage diff --git a/account/login.php b/account/login.php index b715648..f2c57e5 100644 --- a/account/login.php +++ b/account/login.php @@ -11,7 +11,8 @@ try { $cycle_and_email_result = cycleLoginCode($_POST['id']); } catch (\PHPMailer\PHPMailer\Exception $e) { - } // TODO: error message + $error_message = "Eror: Unable to process cycle login. " . $e->getMessage(); + } else if (isset($_POST['login'])) { if (getAccountDetail('login', 'code', $_POST['id']) == strtoupper($_POST['code'])) { $_SESSION['id'] = $_POST['id']; // Login (session) @@ -36,9 +37,7 @@