Added password change

This commit is contained in:
Marijn Jansen
2017-01-18 10:43:54 +01:00
parent 176851b486
commit dde463df6c
4 changed files with 66 additions and 21 deletions

View File

@@ -13,22 +13,26 @@
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header and menu.
*/
include("../views/main.php");
if ($_SERVER["REQUEST_METHOD"] == "POST") {
updateSettings();
}?>
switch ($_POST["form"]) {
case "profile":
updateSettings();
break;
case "password":
updatePassword();
break;
case "email":
break;
case "picture":
break;
}
}
<?php
/* Add your view files here. */
include("../views/settings-view.php");
/* This adds the footer. */
include("../views/footer.php");
?>