diff --git a/src/main/java/KGUcapstone/OutDecision/domain/user/service/S3Service.java b/src/main/java/KGUcapstone/OutDecision/domain/user/service/S3Service.java index cc4b2ae..9f24769 100644 --- a/src/main/java/KGUcapstone/OutDecision/domain/user/service/S3Service.java +++ b/src/main/java/KGUcapstone/OutDecision/domain/user/service/S3Service.java @@ -73,7 +73,7 @@ public void deleteImage(String ImgUrl) { String fileName = ImgUrl.substring(ImgUrl.lastIndexOf(splitStr) + splitStr.length()); // 기본 프로필 이미지가 아닐 때, 삭제 - if (!fileName.equals(defaultImg)) { + if (!ImgUrl.equals(defaultImg)) { amazonS3Client.deleteObject(new DeleteObjectRequest(bucket, fileName)); System.out.println(" 사진 삭제 완료 "); } diff --git a/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java b/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java index 1eaee15..ab5864f 100644 --- a/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java +++ b/src/main/java/KGUcapstone/OutDecision/global/common/util/JwtUtil.java @@ -66,8 +66,8 @@ public String generateRefreshToken(String email, String role) { public String generateAccessToken(String email, String role) { - long tokenPeriod = 1000L * 60L * 60L * 10L; // 1시간 -// long tokenPeriod = 1000L * 10L; + long tokenPeriod = 1000L * 60L * 60L; // 1시간 + Claims claims = Jwts.claims().setSubject(email); claims.put("role", role);