diff --git a/.gitignore b/.gitignore index c3303ac..1645fb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -Lychee.esproj +*.esproj php/config.php diff --git a/php/api.php b/php/api.php index 80922f5..eee65f7 100644 --- a/php/api.php +++ b/php/api.php @@ -169,6 +169,7 @@ if (!empty($_POST['function'])||!empty($_GET['function'])) { // Settings case 'setLogin': if (isset($_POST['username'])&&isset($_POST['password'])) + if (!isset($_POST['oldPassword'])) $_POST['oldPassword'] = ''; echo setLogin($_POST['oldPassword'], $_POST['username'], $_POST['password']); break;