|
|
@ -117,6 +117,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
user.setCreateTime(new Date()); |
|
|
|
user.setCreateTime(new Date()); |
|
|
|
String salt = RandomStringUtils.randomAlphanumeric(20); |
|
|
|
String salt = RandomStringUtils.randomAlphanumeric(20); |
|
|
|
user.setSalt(salt); |
|
|
|
user.setSalt(salt); |
|
|
|
|
|
|
|
user.setScanType("5"); |
|
|
|
user.setPlpassword(Base64.encode(user.getPassword())); |
|
|
|
user.setPlpassword(Base64.encode(user.getPassword())); |
|
|
|
user.setPassword(new BCryptPasswordEncoder(UserConstant.PW_ENCORDER_SALT).encode(user.getPassword())); |
|
|
|
user.setPassword(new BCryptPasswordEncoder(UserConstant.PW_ENCORDER_SALT).encode(user.getPassword())); |
|
|
|
this.saveOrUpdate(user); |
|
|
|
this.saveOrUpdate(user); |
|
|
|