|
@@ -139,6 +139,11 @@ public class AdminLoginServiceImpl implements AdminLoginService {
|
|
private void validatePassword(String inputPassword, String encryptedPassword){
|
|
private void validatePassword(String inputPassword, String encryptedPassword){
|
|
String decryptedPassword = passwordManager.decryptPassword(inputPassword);
|
|
String decryptedPassword = passwordManager.decryptPassword(inputPassword);
|
|
System.out.println("前端解密来的decryptedPassword: " + decryptedPassword);
|
|
System.out.println("前端解密来的decryptedPassword: " + decryptedPassword);
|
|
|
|
+
|
|
|
|
+ String encode = passwordEncoder.encode("123456");
|
|
|
|
+ System.out.println("cunli:"+encode);
|
|
|
|
+
|
|
|
|
+
|
|
System.out.println("数据库查到的密码easSysUserinfo.getPasswd(): " + encryptedPassword);
|
|
System.out.println("数据库查到的密码easSysUserinfo.getPasswd(): " + encryptedPassword);
|
|
if (!passwordEncoder.matches(decryptedPassword, encryptedPassword)) {
|
|
if (!passwordEncoder.matches(decryptedPassword, encryptedPassword)) {
|
|
throw new EasException("密码不正确", 9901);
|
|
throw new EasException("密码不正确", 9901);
|