init backend presensi

This commit is contained in:
mwpn
2026-03-05 14:37:36 +07:00
commit b4fda6b9c9
319 changed files with 27261 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Controllers;
use App\Modules\Auth\Services\AuthService;
use CodeIgniter\HTTP\ResponseInterface;
/**
* Login Page Controller
*
* GET /login shows form; form submits to /api/auth/login (client-side).
*/
class LoginController extends BaseController
{
public function index(): ResponseInterface
{
$authService = new AuthService();
if ($authService->currentUser() !== null) {
return redirect()->to('/dashboard');
}
return $this->response->setBody(view('login/index'));
}
}