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

This commit is contained in:
icret
2022-01-21 18:43:58 +08:00
parent 3cc5924a04
commit f01306e25a
2 changed files with 3 additions and 0 deletions

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/");
}
}