diff --git a/preferences.php b/preferences.php
index ad81fb0..7050a4c 100644
--- a/preferences.php
+++ b/preferences.php
@@ -3,25 +3,17 @@ $pagetitle = "Account options";
include_once ('header.php');
if (!empty($_POST['useremail'])) {
- //this section contains code to update the users e-mail address, maybe via an include?
+ //this section contains code to update the users e-mail address
include_once ('includes/update-email.php');
}
if (!empty($_POST['oldpass'])) {
- echo 'if the oldpass is set, execute code here (this line will go away from preferences.php!)
';
+ // this section contains code to update the users password after verifying the old password first
include_once ('includes/update-password.php');
-} else {
- echo 'if post oldpass is NOT set, then this else statement can go away.
';
}
echo '
'; -var_dump($_SESSION); -echo '