feat: tambah profil akun dan ganti password

Tambahkan halaman /dashboard/profile beserta API ganti password untuk user yang sedang login.
Rapikan AuthSeeder agar idempotent dan bisa ambil admin email/password dari env.
This commit is contained in:
mwpn
2026-03-06 16:07:10 +07:00
parent cea6b06638
commit 132b040418
8 changed files with 243 additions and 11 deletions

View File

@@ -25,6 +25,23 @@ class DashboardPageController extends BaseController
return $this->response->setBody(view('layouts/main', $data));
}
/**
* GET /dashboard/profile
* Halaman profile user: info akun + form ganti password.
*/
public function profile(): ResponseInterface
{
$authService = new AuthService();
$user = $authService->currentUser();
$data = [
'user' => $user,
'content' => view('dashboard/profile'),
];
return $this->response->setBody(view('layouts/main', $data));
}
/**
* GET /dashboard/attendance/reports
* Attendance reports index: pick date, list schedules, link to report per schedule.