mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-27 15:40:00 +01:00
17 lines
322 B
PHP
17 lines
322 B
PHP
|
<?php
|
||
|
session_start();
|
||
|
include $_SESSION["docroot"].'/php/classes.user.php';
|
||
|
$user = new user;
|
||
|
$user->get_info($_COOKIE["token"]);
|
||
|
|
||
|
switch ($_POST["function"]) {
|
||
|
case 'change-pw':
|
||
|
$user->change_password($_POST["current"], $_POST["new"]);
|
||
|
break;
|
||
|
|
||
|
default:
|
||
|
// code...
|
||
|
break;
|
||
|
}
|
||
|
?>
|