From 74e563da7fa6886449fd2be5933e2d4ca5c85f48 Mon Sep 17 00:00:00 2001
From: jack <jack.su@pollex.com.tw>
Date: 星期二, 12 九月 2023 11:25:52 +0800
Subject: [PATCH] [UPDATE] 解決弱點Se: Incorrect definition of Serializable class [UPDATE] 解決弱點Information exposure to log file [UPDATE] 解決弱點Use of hard-coded password

---
 PAMapp/shared/services/login.service.ts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/PAMapp/shared/services/login.service.ts b/PAMapp/shared/services/login.service.ts
index 3c8f45a..eb61ccb 100644
--- a/PAMapp/shared/services/login.service.ts
+++ b/PAMapp/shared/services/login.service.ts
@@ -17,7 +17,8 @@
     async sendOtp(loginInfo: LoginRequest, verifyCode: string): Promise<OtpInfo> {
       try {
         const response = await http.post(`/otp/sendOtp/${verifyCode}`, loginInfo);
-        if (response !== null) {
+        // 撘望�est1: �� if (response)
+        if (response) {
           return response.data;
         } else {
           throw new Error('http.post returned null-like value.');

--
Gitblit v1.8.0