-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
99 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
9 changes: 8 additions & 1 deletion
9
src/main/java/cotato/growingpain/auth/dto/request/ChangePasswordRequest.java
This file contains 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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
package cotato.growingpain.auth.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record ChangePasswordRequest( | ||
String email | ||
|
||
@NotBlank(message = "기존 비밀번호는 필수 입력 항목입니다.") | ||
String currentPassword, | ||
|
||
@NotBlank(message = "새 비밀번호는 필수 입력 항목입니다.") | ||
String newPassword | ||
) { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/cotato/growingpain/auth/dto/request/ResetPasswordRequest.java
This file contains 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,6 @@ | ||
package cotato.growingpain.auth.dto.request; | ||
|
||
public record ResetPasswordRequest( | ||
String email | ||
) { | ||
} |
2 changes: 1 addition & 1 deletion
2
.../dto/response/ChangePasswordResponse.java → ...h/dto/response/ResetPasswordResponse.java
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package cotato.growingpain.auth.dto.response; | ||
|
||
public record ChangePasswordResponse( | ||
public record ResetPasswordResponse( | ||
String password | ||
) { | ||
} |
This file contains 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 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