|
|
|
@ -239,7 +239,7 @@ public class UserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impleme |
|
|
|
|
public R resetPwd(String userId) { |
|
|
|
|
SysUser sysUser = baseMapper.selectById(userId); |
|
|
|
|
sysUser.setSalt(PasswordUtils.getSalt()); |
|
|
|
|
String encode = PasswordUtils.encode("111aaa", sysUser.getSalt()); |
|
|
|
|
String encode = PasswordUtils.encode("1122aa", sysUser.getSalt()); |
|
|
|
|
sysUser.setPassword(encode); |
|
|
|
|
int update = baseMapper.updateById(sysUser); |
|
|
|
|
return update>0 ? R.success("重置成功") : R.fail("重置失败"); |
|
|
|
@ -261,7 +261,7 @@ public class UserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impleme |
|
|
|
|
public void addUser(SysUser vo) { |
|
|
|
|
|
|
|
|
|
vo.setSalt(PasswordUtils.getSalt()); |
|
|
|
|
String encode = PasswordUtils.encode("111aaa", vo.getSalt()); |
|
|
|
|
String encode = PasswordUtils.encode("1122aa", vo.getSalt()); |
|
|
|
|
vo.setPassword(encode); |
|
|
|
|
vo.setStatus(1); |
|
|
|
|
vo.setCreateWhere(1); |
|
|
|
@ -600,7 +600,7 @@ public class UserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impleme |
|
|
|
|
if ("0".equals(usernameId)){ |
|
|
|
|
SysUser vo = new SysUser(); |
|
|
|
|
vo.setSalt(PasswordUtils.getSalt()); |
|
|
|
|
String encode = PasswordUtils.encode("111aaa", vo.getSalt()); |
|
|
|
|
String encode = PasswordUtils.encode("1122aa", vo.getSalt()); |
|
|
|
|
vo.setRealName(realName); |
|
|
|
|
vo.setPhone(getPhone); |
|
|
|
|
vo.setJobNumber(jobNumber); |
|
|
|
|