feat: 인증 및 권한 시스템 개선
- LoginController: 로그인 처리 개선 - UserPermissionController: 권한 관리 기능 개선 - User 모델: 권한 관련 메서드 추가 - AuthService: 인증 서비스 로직 개선 - Middleware 추가 - bootstrap/app.php: 미들웨어 등록 - 권한 관리 뷰 개선 (user-permissions, users)
This commit is contained in:
@@ -37,8 +37,12 @@ public function login(LoginRequest $request): RedirectResponse
|
||||
->with('success', '로그인되었습니다.');
|
||||
}
|
||||
|
||||
// AuthService에서 설정한 오류 메시지 사용
|
||||
$errorMessage = $this->authService->getLoginError()
|
||||
?? '이메일 또는 비밀번호가 올바르지 않습니다.';
|
||||
|
||||
return back()
|
||||
->withErrors(['email' => '이메일 또는 비밀번호가 올바르지 않습니다.'])
|
||||
->withErrors(['email' => $errorMessage])
|
||||
->withInput($request->only('email'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user