-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
7 changed files
with
36 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.co.studyhubinu.studyhubserver.email.dto.data.MailInfo; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.InuEmail; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.NormalEmail; | ||
import lombok.Getter; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
@@ -12,7 +13,8 @@ public class MailSendRequest { | |
|
||
@Schema(description = "이메일 주소", example = "[email protected]") | ||
@NotBlank | ||
@InuEmail(message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)") | ||
@NormalEmail | ||
// @InuEmail(message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)") | ||
private String email; | ||
|
||
public MailInfo toService() { | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.co.studyhubinu.studyhubserver.email.dto.data.ValidDuplicationInfo; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.InuEmail; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.NormalEmail; | ||
import lombok.Getter; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
@@ -12,7 +13,8 @@ public class MailValidDuplicationRequest { | |
|
||
@Schema(description = "이메일 주소", example = "[email protected]") | ||
@NotBlank | ||
@InuEmail(message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)") | ||
@NormalEmail | ||
// @InuEmail(message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)") | ||
private String email; | ||
|
||
public ValidDuplicationInfo toService() { | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.co.studyhubinu.studyhubserver.email.dto.data.ValidMailInfo; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.InuEmail; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.NormalEmail; | ||
import lombok.Getter; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
@@ -12,7 +13,8 @@ public class MailValidRequest { | |
|
||
@Schema(description = "이메일 주소", example = "[email protected]") | ||
@NotBlank | ||
@InuEmail(message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)") | ||
@NormalEmail | ||
// @InuEmail(message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)") | ||
private String email; | ||
|
||
private String authCode; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.InuEmail; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.NormalEmail; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
@@ -14,7 +15,7 @@ public class SignInRequest { | |
|
||
@Schema(description = "유저 이메일", example = "[email protected]") | ||
@NotBlank | ||
@InuEmail(message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)") | ||
@NormalEmail | ||
private String email; | ||
|
||
@Schema(description = "유저 비밀번호", example = "asdasdasd!!") | ||
|
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,7 @@ | ||
package kr.co.studyhubinu.studyhubserver.user.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.co.studyhubinu.studyhubserver.email.validate.NormalEmail; | ||
import kr.co.studyhubinu.studyhubserver.user.dto.data.SignUpInfo; | ||
import kr.co.studyhubinu.studyhubserver.user.enums.GenderType; | ||
import kr.co.studyhubinu.studyhubserver.user.enums.MajorType; | ||
|
@@ -17,10 +18,7 @@ | |
public class SignUpRequest { | ||
|
||
@Schema(description = "유저 이메일", example = "[email protected]") | ||
@Pattern( | ||
regexp = "^[A-Za-z0-9._%+-]+@inu\\.ac\\.kr$", | ||
message = "이메일 형식에 맞지 않습니다. (인천대학교 이메일 주소만 가능)" | ||
) | ||
@NormalEmail | ||
@NotBlank | ||
private String email; | ||
|
||
|
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