diff --git a/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java b/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java index 012fff09..a7a94872 100644 --- a/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java +++ b/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java @@ -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"; }