fix:导入用户密码设置

pg_adapter
wangxy 7 months ago
parent 1fb11c3f96
commit eaf1c3853e

@ -524,7 +524,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper,SysUser> imple
if (StringUtils.isNull(u))
{
BeanValidators.validateWithException(validator, user);
user.setPassword(Md5Utils.hash(user.getLoginName() + password));
user.setSalt(ShiroUtils.randomSalt());
user.setPassword(Md5Utils.hash(user.getLoginName() + password + user.getSalt()));
user.setCreateBy(operName);
userMapper.insertUser(user);
successNum++;

Loading…
Cancel
Save