-
Notifications
You must be signed in to change notification settings - Fork 2
[BE] SIC1-202 [FEAT] 아이디 및 비밀번호 찾기 api 구현 #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
The head ref may contain hidden characters: "SISC1-202-\uC544\uC774\uB514-\uBE44\uBC00\uBC88\uD638-\uCC3E\uAE30-api-\uAD6C\uD604"
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
392afdd
[BE] SIC1-202 [FEAT] 아이디 및 비밀번호 찾기 api 구현
msciki7 4e97e37
[BE] SISC1-202 [FEAT] 비밀번호 정책 추가
msciki7 5a7539a
[BE] SISC1-202 [FIX] 비밀번호 취약점 추가
msciki7 d3a7b01
[BE] SISC1-202 [FIX] Redis 조회 실패 오류 수정
msciki7 b0f2408
[BE] SISC1-202 [FIX] 비밀번호 검증 저장 수정
msciki7 3bccb71
[BE] SISC1-202 [FIX] 예외 처리 수정
msciki7 34c4bf8
[BE] SISC1-202 [FIX] 이메일/이름/전화번호 입력값 정규화 및 유효성 검증 추가
msciki7 1630926
[BE] SISC1-202 [FIX] swagger 설명 변경
msciki7 5180336
[BE] SISC1-202 [FEAT] 비밀번호 재설정 API 요청 DTO 추가 및 검증 강화
msciki7 fd629bf
[BE] SICS1-202 verifyReset 입력값 정규화 및 인증코드 trim 처리
msciki7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
backend/src/main/java/org/sejongisc/backend/user/dto/PasswordResetCommitRequest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package org.sejongisc.backend.user.dto; | ||
|
|
||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.Pattern; | ||
|
|
||
| public record PasswordResetCommitRequest( | ||
| @NotBlank(message = "resetToken은 필수입니다.") | ||
| String resetToken, | ||
|
|
||
| @NotBlank(message = "새 비밀번호는 필수입니다.") | ||
| @Pattern( | ||
| regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[!@#$%^&*()_+=\\-{}\\[\\];:'\",.<>/?]).{8,20}$", | ||
| message = "비밀번호는 8~20자, 대소문자/숫자/특수문자를 모두 포함해야 합니다." | ||
| ) | ||
| String newPassword | ||
| ) { } |
10 changes: 10 additions & 0 deletions
10
backend/src/main/java/org/sejongisc/backend/user/dto/PasswordResetSendRequest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| package org.sejongisc.backend.user.dto; | ||
|
|
||
| import jakarta.validation.constraints.Email; | ||
| import jakarta.validation.constraints.NotBlank; | ||
|
|
||
| public record PasswordResetSendRequest( | ||
| @NotBlank(message = "이메일은 필수입니다.") | ||
| @Email(message = "올바른 이메일 형식이 아닙니다.") | ||
| String email | ||
| ) { } |
15 changes: 15 additions & 0 deletions
15
backend/src/main/java/org/sejongisc/backend/user/dto/PasswordResetVerifyRequest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package org.sejongisc.backend.user.dto; | ||
|
|
||
| import jakarta.validation.constraints.Email; | ||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.Size; | ||
|
|
||
| public record PasswordResetVerifyRequest( | ||
| @NotBlank(message = "이메일은 필수입니다.") | ||
| @Email(message = "올바른 이메일 형식이 아닙니다.") | ||
| String email, | ||
|
|
||
| @NotBlank(message = "인증코드는 필수입니다.") | ||
| @Size(min = 6, max = 6, message = "인증코드는 6자리여야 합니다.") | ||
| String code | ||
| ) {} |
12 changes: 12 additions & 0 deletions
12
backend/src/main/java/org/sejongisc/backend/user/dto/UserIdFindRequest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package org.sejongisc.backend.user.dto; | ||
|
|
||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.Pattern; | ||
|
|
||
| public record UserIdFindRequest(@NotBlank(message = "이름은 필수입니다.") | ||
| String name, | ||
|
|
||
| @NotBlank(message = "전화번호는 필수입니다.") | ||
| @Pattern(regexp = "^010\\d{8}$", message = "전화번호 형식이 올바르지 않습니다.") | ||
| String phoneNumber) { | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.