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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user