cuidi пре 1 година
родитељ
комит
b6b0090ac2

+ 3 - 3
service/src/main/java/com/koobietech/eas/service/impl/StudentLoginServiceImpl.java

@@ -179,9 +179,9 @@ public class StudentLoginServiceImpl implements StudentLoginService {
 
     private void validatePassword(String inputPassword, String encryptedPassword) {
         String decryptedPassword = passwordManager.decryptPassword(inputPassword);
-        System.out.println("解密密码decryptedPassword: " + decryptedPassword);
-        System.out.println("加密密码easSysUserinfo.getPasswd(): " + encryptedPassword);
-        if (!passwordEncoder.matches(encryptedPassword, decryptedPassword)) {
+        System.out.println("aes解密密码decryptedPassword: " + decryptedPassword);
+        System.out.println("数据库里的加密密码easSysUserinfo.getPasswd(): " + encryptedPassword);
+        if (!passwordEncoder.matches(decryptedPassword, encryptedPassword)) {
             throw new EasException("密码不正确", 9901);
         }
     }