Mengubah password semua actor

This commit is contained in:
2026-06-09 20:22:09 +07:00
parent ba4bd1f280
commit 311e5579f4
7 changed files with 59 additions and 54 deletions
+6 -5
View File
@@ -7,11 +7,12 @@
require_once 'config.php';
// Daftar akun demo yang akan di-insert / update
// Daftar akun demo yang akan di-insert / update (password seragam: "password")
$demoUsers = [
['username' => 'admin', 'nama' => 'Administrator Sistem', 'role' => 'admin', 'password' => 'admin123'],
['username' => 'pengurus', 'nama' => 'Pengurus Rumah Ibadah', 'role' => 'pengurus', 'password' => 'pengurus123'],
['username' => 'walikota', 'nama' => 'Walikota Pontianak', 'role' => 'walikota', 'password' => 'walikota123'],
['username' => 'admin', 'nama' => 'Administrator Sistem', 'role' => 'admin', 'password' => 'password'],
['username' => 'petugas', 'nama' => 'Petugas Lapangan', 'role' => 'petugas', 'password' => 'password'],
['username' => 'pengurus', 'nama' => 'Pengurus Rumah Ibadah', 'role' => 'pengurus', 'password' => 'password'],
['username' => 'walikota', 'nama' => 'Walikota Pontianak', 'role' => 'walikota', 'password' => 'password'],
];
$db = getDB();
@@ -79,7 +80,7 @@ header('Content-Type: text/html; charset=utf-8');
<td class="<?= str_starts_with($r['status'],'✅') ? 'ok':'err' ?>"><?= $r['status'] ?></td>
<td><?= htmlspecialchars($r['username']) ?></td>
<td><?= htmlspecialchars($r['role']) ?></td>
<td><?= ($r['username'].'123') ?></td>
<td>password</td>
<td style="font-size:11px;word-break:break-all"><?= htmlspecialchars($r['hash']) ?></td>
</tr>
<?php endforeach; ?>