|
@@ -13,6 +13,7 @@ import org.springframework.security.core.AuthenticationException;
|
|
|
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
|
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
+import com.style24.core.support.env.TscConstants;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.front.biz.service.TsfLoginService;
|
|
import com.style24.front.biz.service.TsfLoginService;
|
|
|
import com.style24.front.support.env.TsfConstants;
|
|
import com.style24.front.support.env.TsfConstants;
|
|
@@ -21,6 +22,7 @@ import com.style24.front.support.exception.TsfEmailDuplicationException;
|
|
|
import com.style24.front.support.exception.TsfLockedAccountException;
|
|
import com.style24.front.support.exception.TsfLockedAccountException;
|
|
|
import com.style24.front.support.exception.TsfSecedeAccountException;
|
|
import com.style24.front.support.exception.TsfSecedeAccountException;
|
|
|
import com.style24.front.support.exception.TsfUsernameNotFoundException;
|
|
import com.style24.front.support.exception.TsfUsernameNotFoundException;
|
|
|
|
|
+import com.style24.front.support.security.session.TsfSession;
|
|
|
import com.style24.persistence.domain.Login;
|
|
import com.style24.persistence.domain.Login;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -91,10 +93,13 @@ public class TsfAuthenticationProvider implements AuthenticationProvider {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (loginInfo.getCustStat().equals("20")) { // 휴면회원
|
|
|
|
|
-// WfoSession.setDormantMemberNo(request, loginInfo.getCustId());
|
|
|
|
|
|
|
+ if (TscConstants.CustStat.DORMANT.value().equals(loginInfo.getCustStat())) { // 휴면회원
|
|
|
|
|
+
|
|
|
|
|
+ // 휴면해제를 위한 고객번호 세선저장
|
|
|
|
|
+ TsfSession.setAttribute("custNo", String.valueOf(loginInfo.getCustNo()));
|
|
|
throw new TsfDormantAccountException(message.getMessage("LOGN_0006"));
|
|
throw new TsfDormantAccountException(message.getMessage("LOGN_0006"));
|
|
|
- } else if (loginInfo.getCustStat().equals("30")) { // 탈퇴회원
|
|
|
|
|
|
|
+
|
|
|
|
|
+ } else if (TscConstants.CustStat.SECEDE.value().equals(loginInfo.getCustStat())) { // 탈퇴회원
|
|
|
throw new TsfSecedeAccountException(message.getMessage("LOGN_0007"));
|
|
throw new TsfSecedeAccountException(message.getMessage("LOGN_0007"));
|
|
|
}
|
|
}
|
|
|
|
|
|