회원관리 관리 수정

This commit is contained in:
2025-12-10 18:30:44 +09:00
parent bdb5ba7011
commit fc2edf7c6d
9 changed files with 68 additions and 72 deletions

View File

@@ -56,6 +56,10 @@ public class AuthController {
@ApiResponse(
responseCode = "401",
description = "ID 또는 비밀번호 불일치",
content = @Content(schema = @Schema(implementation = ErrorResponse.class))),
@ApiResponse(
responseCode = "400",
description = "미사용 상태",
content = @Content(schema = @Schema(implementation = ErrorResponse.class)))
})
public ApiResponseDto<TokenResponse> signin(
@@ -65,6 +69,12 @@ public class AuthController {
@RequestBody
SignInRequest request,
HttpServletResponse response) {
//
if (authService.existsUsername(request)) {
// return
}
Authentication authentication =
authenticationManager.authenticate(
new UsernamePasswordAuthenticationToken(request.getUsername(), request.getPassword()));