이지우 - 로그인 연동 API. user_id, key null 체크 수정
This commit is contained in:
parent
09e97355ff
commit
55e882cbcf
@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
@ -80,7 +81,7 @@ public class APILoginContoller {
|
||||
key = "std02@forwiz.comxpnBtqsev3nh9mryXRdL9QRSR72XuNc08ese5iXHb0Waq1dMnSdkHHqKCgoSFeyH.amV1c19kb21haW4vTE1T";
|
||||
returnUrl = "/web/main/mainPage.do";*/
|
||||
|
||||
if(userId == null || key == null) {
|
||||
if(StringUtils.isEmpty(userId) || StringUtils.isEmpty(key)) {
|
||||
return "redirect:/web/main/mainPage.do";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user