Skip to content

Commit

Permalink
Merge pull request #49 from HanaFun/account
Browse files Browse the repository at this point in the history
fix: account pw check api
  • Loading branch information
doSeung11 authored Jul 3, 2024
2 parents 6381108 + 5dc5cd0 commit d7b592e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

import java.util.List;

Expand All @@ -27,7 +24,7 @@ ResponseEntity<ApiResponse> readAccountList(@AuthenticationPrincipal Long userId
return ResponseEntity.ok(new ApiResponse(true, "ok", accountResDtoList));
}

@GetMapping("/pw")
@PostMapping("/pw")
ResponseEntity<ApiResponse> checkAccountPw(@RequestBody PwReqDto pwReqDto){
PwResDto pwResDto = accountService.checkAccountPw(pwReqDto);
return ResponseEntity.ok(new ApiResponse(true, "ok", pwResDto));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception, Auth
public UrlBasedCorsConfigurationSource corsConfigurationSource() {
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
// TODO CORS 설정 변경 필요
config.addAllowedOrigin("http://localhost:3000");
config.addAllowedOrigin("https://hana-fun-fe.vercel.app");
config.addAllowedHeader("*");
Expand Down

0 comments on commit d7b592e

Please sign in to comment.