From 55e882cbcfb11557b04bbac73f54904ee0b444ce Mon Sep 17 00:00:00 2001 From: jiwoo Date: Wed, 18 Oct 2023 15:42:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=9A=B0=20-=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EC=97=B0=EB=8F=99=20API.=20user=5Fid,=20k?= =?UTF-8?q?ey=20null=20=EC=B2=B4=ED=81=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/kcc/let/uat/uia/web/APILoginContoller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; }