dbmsv4 init...1
This commit is contained in:
parent
bc2a8e8d0e
commit
0d224f71c5
@ -45,20 +45,14 @@ abstract class AuthController extends AbstractWebController
|
|||||||
final public function login(): RedirectResponse
|
final public function login(): RedirectResponse
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
echo "TEST";
|
|
||||||
exit;
|
|
||||||
$this->login_process();
|
$this->login_process();
|
||||||
$redirect_url = $this->getAuthContext()->popPreviousUrl() ?? implode(DIRECTORY_SEPARATOR, $this->getActionPaths());
|
$redirect_url = $this->getAuthContext()->popPreviousUrl() ?? implode(DIRECTORY_SEPARATOR, $this->getActionPaths());
|
||||||
return redirect()->to($redirect_url)->with('message', MESSAGES['LOGIN']);
|
return redirect()->to($redirect_url)->with('message', MESSAGES['LOGIN']);
|
||||||
} catch (ValidationException $e) {
|
} catch (ValidationException $e) {
|
||||||
echo $e->getMessage();
|
|
||||||
exit;
|
|
||||||
// 검증 실패 시 폼으로 돌아가서 오류 메시지 표시
|
// 검증 실패 시 폼으로 돌아가서 오류 메시지 표시
|
||||||
log_message('error', $e->getMessage());
|
log_message('error', $e->getMessage());
|
||||||
return redirect()->back()->withInput()->with('message', $e->getMessage());
|
return redirect()->back()->withInput()->with('message', $e->getMessage());
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
echo $e->getMessage();
|
|
||||||
exit;
|
|
||||||
log_message('error', $e->getMessage());
|
log_message('error', $e->getMessage());
|
||||||
return redirect()->back()->withInput()->with('message', $e->getMessage());
|
return redirect()->back()->withInput()->with('message', $e->getMessage());
|
||||||
// return redirect()->to($this->getMyAuth()->popPreviousUrl())->with('message', $e->getMessage());
|
// return redirect()->to($this->getMyAuth()->popPreviousUrl())->with('message', $e->getMessage());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user