fix: Web UI로 초기 install이 불가능한 버그 수정

This commit is contained in:
2022-03-13 20:16:54 +09:00
parent 91ea0d1c2a
commit 0a1d81be76
2 changed files with 5 additions and 6 deletions
+2 -3
View File
@@ -35,15 +35,14 @@
"autoload": {
"psr-4": {
"sammo\\": [
"d_setting",
"src/sammo"
],
"kakao\\": [
"d_setting",
"src/kakao"
]
},
"classmap": [
"d_setting/"
],
"exclude-from-classmap": [
"**/*.orig.php"
],
+3 -3
View File
@@ -260,7 +260,7 @@ function setupAdminForm() {
}
},
}
const validator = new JQValidateForm($('#db_form'), descriptor);
const validator = new JQValidateForm($('#admin_form'), descriptor);
validator.installChangeHandler();
$('#admin_form').on('submit', async function (e) {
@@ -278,7 +278,7 @@ function setupAdminForm() {
let result: InvalidResponse;
try {
const response = await axios({
url: 'j_setup_db.php',
url: 'j_create_admin.php',
method: 'post',
responseType: 'json',
data: convertFormData({
@@ -299,7 +299,7 @@ function setupAdminForm() {
return;
}
alert('RootDB.php가 생성되었습니다. 관리자 계정 생성을 진행합니다.');
alert('관리자 계정 생성되었습니다.');
await changeInstallMode();
});
}