From bc2a8e8d0e975b1ff254ff5618d98c2b9b36dd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 19 Nov 2025 12:34:00 +0900 Subject: [PATCH] dbmsv4 init...1 --- app/Controllers/Auth/AuthController.php | 6 + app/DTOs/Auth/GoogleDTO.php | 7 - app/DTOs/Auth/LocalDTO.php | 8 - app/Views/admin/traffic/dashboard.php | 287 ------------------------ app/Views/auth/login_form.php | 3 +- 5 files changed, 8 insertions(+), 303 deletions(-) delete mode 100644 app/Views/admin/traffic/dashboard.php diff --git a/app/Controllers/Auth/AuthController.php b/app/Controllers/Auth/AuthController.php index b4416cd..9f10a4e 100644 --- a/app/Controllers/Auth/AuthController.php +++ b/app/Controllers/Auth/AuthController.php @@ -45,14 +45,20 @@ abstract class AuthController extends AbstractWebController final public function login(): RedirectResponse { try { + echo "TEST"; + exit; $this->login_process(); $redirect_url = $this->getAuthContext()->popPreviousUrl() ?? implode(DIRECTORY_SEPARATOR, $this->getActionPaths()); return redirect()->to($redirect_url)->with('message', MESSAGES['LOGIN']); } catch (ValidationException $e) { + echo $e->getMessage(); + exit; // 검증 실패 시 폼으로 돌아가서 오류 메시지 표시 log_message('error', $e->getMessage()); return redirect()->back()->withInput()->with('message', $e->getMessage()); } catch (\Exception $e) { + echo $e->getMessage(); + exit; log_message('error', $e->getMessage()); return redirect()->back()->withInput()->with('message', $e->getMessage()); // return redirect()->to($this->getMyAuth()->popPreviousUrl())->with('message', $e->getMessage()); diff --git a/app/DTOs/Auth/GoogleDTO.php b/app/DTOs/Auth/GoogleDTO.php index 152cd04..b605b19 100644 --- a/app/DTOs/Auth/GoogleDTO.php +++ b/app/DTOs/Auth/GoogleDTO.php @@ -15,11 +15,4 @@ class GoogleDTO extends AuthDTO } } } - - public function toArray(): array - { - return [ - 'access_code' => $this->access_code, - ]; - } } diff --git a/app/DTOs/Auth/LocalDTO.php b/app/DTOs/Auth/LocalDTO.php index f5db587..6477e4d 100644 --- a/app/DTOs/Auth/LocalDTO.php +++ b/app/DTOs/Auth/LocalDTO.php @@ -16,12 +16,4 @@ class LocalDTO extends AuthDTO } } } - - public function toArray(): array - { - return [ - 'id' => $this->id, - 'passwd' => $this->passwd, - ]; - } } diff --git a/app/Views/admin/traffic/dashboard.php b/app/Views/admin/traffic/dashboard.php deleted file mode 100644 index 8986abd..0000000 --- a/app/Views/admin/traffic/dashboard.php +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - - <?= $title ?? '대시보드' ?> - - - - - - - - -
- -
-
- -

getCustomTitle() ?>트래픽 속도 추이 (IN/OUT Kbit/s)

- -
-
-
-
-
- - - - - - - - -
- -
-
-
-
- - - - - - \ No newline at end of file diff --git a/app/Views/auth/login_form.php b/app/Views/auth/login_form.php index 8142670..665ff6f 100644 --- a/app/Views/auth/login_form.php +++ b/app/Views/auth/login_form.php @@ -21,4 +21,5 @@
- \ No newline at end of file + +endSection() ?> \ No newline at end of file