From f01306e25a4b87bc057ea18797467310539ce4f4 Mon Sep 17 00:00:00 2001 From: icret Date: Fri, 21 Jan 2022 18:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=9B=B4=E6=94=B9=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + install/contorl.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index ce01806..0362b1a 100755 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ Deny from all - 增加图片信息页面 - 增加上传黑/白名单 - 修复因关闭上传日志而导致的无法鉴黄和后端压缩图片 +- 修复安装时更改管理员账号失败 * 2022-1-13 v2.4.5 - 修复一处权限问题 diff --git a/install/contorl.php b/install/contorl.php index 6968bd1..0849d76 100755 --- a/install/contorl.php +++ b/install/contorl.php @@ -9,6 +9,7 @@ if (isset($_POST['password'])) { if ($_POST['password'] == $_POST['repassword']) { $config['password'] = md5($_POST['password']); + $config['user'] = $_POST['user']; } else { exit(''); @@ -50,6 +51,7 @@ if (isset($_POST['del_extra_files'])) { @unlink(APP_ROOT . '/README.md'); @unlink(APP_ROOT . '/config/EasyIamge.lock'); @deldir(APP_ROOT . "/.github/"); + @deldir(APP_ROOT . "/.git/"); } }