导入网格员密码加密方式修改
This commit is contained in:
parent
bf2ac71978
commit
7d8eb5f499
@ -7,6 +7,7 @@ import com.alibaba.excel.event.AnalysisEventListener;
|
|||||||
import ink.wgink.util.UUIDUtil;
|
import ink.wgink.util.UUIDUtil;
|
||||||
import ink.wgink.util.date.DateUtil;
|
import ink.wgink.util.date.DateUtil;
|
||||||
import ink.wgink.util.jdbc.JdbcUtil;
|
import ink.wgink.util.jdbc.JdbcUtil;
|
||||||
|
import org.apache.commons.codec.digest.DigestUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||||
@ -350,7 +351,7 @@ public class BaseGridMemberTest {
|
|||||||
username = excelGridMember.getUserPhone();
|
username = excelGridMember.getUserPhone();
|
||||||
}
|
}
|
||||||
insertUserPS.setString(2, username);
|
insertUserPS.setString(2, username);
|
||||||
insertUserPS.setString(3, new BCryptPasswordEncoder().encode("88888888"));
|
insertUserPS.setString(3, new BCryptPasswordEncoder().encode(DigestUtils.md5Hex(DigestUtils.md5Hex(DigestUtils.md5Hex("88888888")))));
|
||||||
insertUserPS.setString(4, excelGridMember.getUserName().replaceAll("\\s", ""));
|
insertUserPS.setString(4, excelGridMember.getUserName().replaceAll("\\s", ""));
|
||||||
insertUserPS.setString(5, excelGridMember.getUserPhone());
|
insertUserPS.setString(5, excelGridMember.getUserPhone());
|
||||||
insertUserPS.setString(6, currentDateTime);
|
insertUserPS.setString(6, currentDateTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user