修复安装时无法更改管理员账号

pull/18/head
icret 2022-01-21 18:43:58 +08:00
parent 3cc5924a04
commit f01306e25a
2 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,7 @@ Deny from all
- 增加图片信息页面
- 增加上传黑/白名单
- 修复因关闭上传日志而导致的无法鉴黄和后端压缩图片
- 修复安装时更改管理员账号失败
* 2022-1-13 v2.4.5
- 修复一处权限问题

View File

@ -9,6 +9,7 @@ if (isset($_POST['password'])) {
if ($_POST['password'] == $_POST['repassword']) {
$config['password'] = md5($_POST['password']);
$config['user'] = $_POST['user'];
} else {
exit('<script>window.alert("两次密码不一致请重新输入!");location.href="./index.php";</script>');
@ -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/");
}
}