From 65b6a875e639375adca875296f627635caadbb35 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Mon, 21 Dec 2020 21:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90auth=E3=80=91=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E5=85=B3=E6=8E=89=E5=AF=86=E7=A0=81=E4=BC=A0=E8=BE=93=E5=8A=A0?= =?UTF-8?q?=E5=AF=86=E8=A7=A3=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java b/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java index f187679a2..801c21fad 100644 --- a/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java +++ b/kernel-d-auth/auth-sdk/src/main/java/cn/stylefeng/roses/kernel/auth/auth/AuthServiceImpl.java @@ -141,14 +141,14 @@ public class AuthServiceImpl implements AuthServiceApi { } // 2. 解密密码的密文 - String decryptPassword = passwordTransferEncryptApi.decrypt(loginRequest.getPassword()); +// String decryptPassword = passwordTransferEncryptApi.decrypt(loginRequest.getPassword()); // 3. 获取用户密码的加密值和用户的状态 UserLoginInfoDTO userValidateInfo = userServiceApi.getUserLoginInfo(loginRequest.getAccount()); // 4. 校验用户密码是否正确(BCrypt算法) if (validatePassword) { - Boolean checkResult = passwordStoredEncryptApi.checkPassword(decryptPassword, userValidateInfo.getUserPasswordHexed()); + Boolean checkResult = passwordStoredEncryptApi.checkPassword(loginRequest.getPassword(), userValidateInfo.getUserPasswordHexed()); if (!checkResult) { throw new AuthException(AuthExceptionEnum.USERNAME_PASSWORD_ERROR); }