이지우 - 로그인 연동 API. user_id, key null 체크 수정

This commit is contained in:
jiwoo 2023-10-18 15:42:03 +09:00
parent 09e97355ff
commit 55e882cbcf

View File

@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject; import org.json.JSONObject;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
@ -80,7 +81,7 @@ public class APILoginContoller {
key = "std02@forwiz.comxpnBtqsev3nh9mryXRdL9QRSR72XuNc08ese5iXHb0Waq1dMnSdkHHqKCgoSFeyH.amV1c19kb21haW4vTE1T"; key = "std02@forwiz.comxpnBtqsev3nh9mryXRdL9QRSR72XuNc08ese5iXHb0Waq1dMnSdkHHqKCgoSFeyH.amV1c19kb21haW4vTE1T";
returnUrl = "/web/main/mainPage.do";*/ returnUrl = "/web/main/mainPage.do";*/
if(userId == null || key == null) { if(StringUtils.isEmpty(userId) || StringUtils.isEmpty(key)) {
return "redirect:/web/main/mainPage.do"; return "redirect:/web/main/mainPage.do";
} }