|
|
|
@ -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++;
|
|
|
|
|