로그인 관련 수정사항 처리

This commit is contained in:
Kang Jung Kyo 2024-10-08 15:19:18 +09:00
parent 942b2e7ecb
commit e554ab72de
3 changed files with 5 additions and 16 deletions

View File

@ -66,14 +66,6 @@ public class LoginService {
// 가입 신청 등록 // 가입 신청 등록
public DefaultResponse joinUser(JoinUser joinUser) throws Exception { public DefaultResponse joinUser(JoinUser joinUser) throws Exception {
if (joinUser.getLangCd() == null || "".equals(joinUser.getLangCd()))
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
message.getMessage("common.message.required.data", "Language Code"));
if (joinUser.getLastEditUser() == null || "".equals(joinUser.getLastEditUser()))
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
message.getMessage("common.message.required.data", "Last Edit User Id"));
if (joinUser.getStoreQcastNm() == null || "".equals(joinUser.getStoreQcastNm())) if (joinUser.getStoreQcastNm() == null || "".equals(joinUser.getStoreQcastNm()))
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE, throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
message.getMessage("common.message.required.data", "Store QCast Name")); message.getMessage("common.message.required.data", "Store QCast Name"));
@ -167,13 +159,13 @@ public class LoginService {
// 비밀번호 변경 // 비밀번호 변경
public DefaultResponse changePassword(UserPassword userPassword) throws Exception { public DefaultResponse changePassword(UserPassword userPassword) throws Exception {
if (userPassword.getLastEditUser() == null || "".equals(userPassword.getLastEditUser())) if (userPassword.getLoginId() == null || "".equals(userPassword.getLoginId()))
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE, throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
message.getMessage("common.message.required.data", "Last Edit User Id")); message.getMessage("common.message.required.data", "Login Id"));
if (userPassword.getPwd() == null || "".equals(userPassword.getPwd())) if (userPassword.getChgType() == null || "".equals(userPassword.getChgType()))
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE, throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,
message.getMessage("common.message.required.data", "Now Password")); message.getMessage("common.message.required.data", "Change Type (I :Init , C: Change)"));
if (userPassword.getChgPwd() == null || "".equals(userPassword.getChgPwd())) if (userPassword.getChgPwd() == null || "".equals(userPassword.getChgPwd()))
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE, throw new QcastException(ErrorCode.INVALID_INPUT_VALUE,

View File

@ -6,8 +6,6 @@ import lombok.Setter;
@Getter @Getter
@Setter @Setter
public class JoinUser { public class JoinUser {
private String langCd; // Language Code
private String lastEditUser; // Last Edit User Id
private String storeQcastNm; // Store QCast Name private String storeQcastNm; // Store QCast Name
private String storeQcastNmKana; // Store QCast Name Kana private String storeQcastNmKana; // Store QCast Name Kana
private String postCd; // Postal Code private String postCd; // Postal Code

View File

@ -6,9 +6,8 @@ import lombok.Setter;
@Getter @Getter
@Setter @Setter
public class UserPassword { public class UserPassword {
private String langCd; // Language Code
private String lastEditUser; // Last Edit User Id
private String loginId; // Login Id private String loginId; // Login Id
private String chgType; // Change Type (I :Init , C: Change)
private String email; // Email private String email; // Email
private String pwd; // Now Password private String pwd; // Now Password
private String chgPwd; // Change Password private String chgPwd; // Change Password