PHP_SMART_HOME_V3/app/controls/setting.php
2019-10-13 12:29:07 +02:00

11 lines
362 B
PHP

<?php
if (isset($_POST) && !empty($_POST)){
if (isset($_POST['submitPasswordChange']) && $_POST['submitPasswordChange'] != "") {
$oldPassword = $_POST['oldPassword'];
$newPassword = $_POST['newPassword1'];
$newPassword2 = $_POST['newPassword2'];
UserManager::changePassword($oldPassword, $newPassword, $newPassword2);
//TODO: pridat odhlášení
}
}