fix: update koneksi database ke localhost dan perbaiki path URL
This commit is contained in:
+4
-4
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user