diff --git a/preferences.php b/preferences.php
index cdb9cb2..54566af 100644
--- a/preferences.php
+++ b/preferences.php
@@ -6,6 +6,14 @@ if (!empty($_POST['useremail'])) {
//this section contains code to update the users e-mail address, maybe via an include?
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!)
';
+ include_once ('includes/update-password.php');
+} else {
+ echo 'if post oldpass is NOT set, then this else statement can go away.
';
+}
+
echo '
| Old Password |
|---|
| New password |
| Verify password |