| | |
| | | import com.ltkj.framework.manager.AsyncManager; |
| | | import com.ltkj.framework.manager.factory.AsyncFactory; |
| | | import com.ltkj.framework.security.context.AuthenticationContextHolder; |
| | | import org.springframework.util.DigestUtils; |
| | | |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | |
| | | } |
| | | for (TjCustomer tjCustomer : customerList) { |
| | | try { |
| | | password = RsaUtils.decryptByPrivateKey(password); |
| | | boolean b = SecurityUtils.matchesPassword(password, tjCustomer.getCusPassword()); |
| | | if (b) { |
| | | // password = RsaUtils.decryptByPrivateKey(password); |
| | | // boolean b = SecurityUtils.matchesPassword(password, tjCustomer.getCusPassword()); |
| | | // if (b) { |
| | | // return createLoginCus(tjCustomer); |
| | | // } |
| | | password = DigestUtils.md5DigestAsHex(password.getBytes()); |
| | | if (password.equals(tjCustomer.getCusPassword())){ |
| | | return createLoginCus(tjCustomer); |
| | | } |
| | | } catch (Exception e) { |