팩스 발송 이용정지 회원의 경우 로그인 세션 종료되도록 변경
@bde54ea7a30fd0175f3f4c451af470d7afef276d
--- src/main/java/itn/let/fax/user/web/FaxRestController.java
+++ src/main/java/itn/let/fax/user/web/FaxRestController.java
... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 |
|
| 7 | 7 |
import javax.annotation.Resource; |
| 8 | 8 |
import javax.imageio.ImageIO; |
| 9 |
+import javax.servlet.http.HttpServletRequest; |
|
| 9 | 10 |
|
| 10 | 11 |
import org.apache.commons.lang3.StringUtils; |
| 11 | 12 |
import org.apache.pdfbox.pdmodel.PDDocument; |
... | ... | @@ -129,7 +130,7 @@ |
| 129 | 130 |
* @throws Exception |
| 130 | 131 |
*/ |
| 131 | 132 |
@RequestMapping(value= {"/web/mjon/fax/sendData.do"})
|
| 132 |
- public ResponseEntity<StatusResponse> sendData(FaxTranVO faxTranVO) throws Exception{
|
|
| 133 |
+ public ResponseEntity<StatusResponse> sendData(FaxTranVO faxTranVO, HttpServletRequest request) throws Exception{
|
|
| 133 | 134 |
//로그인 권한정보 불러오기 |
| 134 | 135 |
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
| 135 | 136 |
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
... | ... | @@ -143,6 +144,7 @@ |
| 143 | 144 |
boolean mberSttus = userManageService.selectUserStatusInfo(userId); |
| 144 | 145 |
|
| 145 | 146 |
if(!mberSttus) {
|
| 147 |
+ request.getSession().invalidate(); |
|
| 146 | 148 |
return ResponseEntity.ok().body(new StatusResponse(HttpStatus.BAD_REQUEST, "현재 고객님께서는 문자온 서비스 이용이 정지된 상태로 팩스를 발송하실 수 없습니다. 이용정지 해제를 원하시면 고객센터로 연락주시기 바랍니다.", LocalDateTime.now())); |
| 147 | 149 |
} |
| 148 | 150 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?