From 1cd6c3e8ee9326c52ac79805193db1d32b390055 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期六, 09 十一月 2024 18:41:07 +0800
Subject: [PATCH] 代码提交

---
 xinquan-auth/src/main/java/com/xinquan/auth/service/SysLoginService.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/xinquan-auth/src/main/java/com/xinquan/auth/service/SysLoginService.java b/xinquan-auth/src/main/java/com/xinquan/auth/service/SysLoginService.java
index 99ac720..a75d57c 100644
--- a/xinquan-auth/src/main/java/com/xinquan/auth/service/SysLoginService.java
+++ b/xinquan-auth/src/main/java/com/xinquan/auth/service/SysLoginService.java
@@ -232,6 +232,7 @@
         appLoginUser.setCellPhone(cellPhone);
         appLoginUser.setAppUserId(appUserInfo.getId());
         appLoginUser.setSysUser(sysUser);
+
         return appLoginUser;
     }
 
@@ -274,6 +275,8 @@
                 return CacheConstants.APP_VERIFY_CAPTCHA_CODE_PREFIX;
             case 5:
                 return CacheConstants.APP_CHANGE_PHONE_CODE_PREFIX;
+            case 6:
+                return CacheConstants.ADD_CARD_PHONE_CODE_PREFIX;
             default:
                 return "";
         }
@@ -471,7 +474,7 @@
             throw new ServiceException("用户不存在或已注销");
         }
         // 修改密码
-        sysUser.setPassword(body.getPassword());
+        sysUser.setPassword(SecurityUtils.encryptPassword(body.getPassword()));
         sysUserClient.updateUser(sysUser);
         redisService.deleteObject(CacheConstants.APP_PASSWORD_SECRET_PREFIX + body.getCellPhone());
     }

--
Gitblit v1.7.1