dbmsv4 init...1

This commit is contained in:
최준흠 2025-11-19 12:57:00 +09:00
parent bc2a8e8d0e
commit 0d224f71c5

View File

@ -45,20 +45,14 @@ 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());