fix: update koneksi database ke localhost dan perbaiki path URL

This commit is contained in:
2026-06-13 17:52:10 +07:00
parent 534d2d926d
commit a1818ace30
9 changed files with 24 additions and 24 deletions
+4 -4
View File
@@ -35,7 +35,7 @@
</button>
</form>
<div class="text-center mt-3">
<a href="/sig-bansos/PENGGUNA%20UMUM.html" class="text-muted">Lihat sebagai Pengguna Umum</a>
<a href="/WEBPOVERTYSIGUAS/sig-bansos/PENGGUNA%20UMUM.html" class="text-muted">Lihat sebagai Pengguna Umum</a>
</div>
</div>
</div>
@@ -50,7 +50,7 @@
const password = document.getElementById('password').value;
try {
const response = await fetch('/sig-jalan/api_login.php?action=login', {
const response = await fetch('/WEBPOVERTYSIGUAS/sig-jalan/api_login.php?action=login', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({username, password})
@@ -62,9 +62,9 @@
sessionStorage.setItem('user', JSON.stringify(result.data));
if (result.data.role === 'admin') {
window.location.href = '/sig-bansos/DASHBOARD%20ADMIN.html';
window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/DASHBOARD%20ADMIN.html';
} else {
window.location.href = '/sig-bansos/PENGGUNA%20UMUM.html';
window.location.href = '/WEBPOVERTYSIGUAS/sig-bansos/PENGGUNA%20UMUM.html';
}
} else {
document.getElementById('errorMsg').style.display = 'block';