修改默认登录密码为1122aa

master
cheney 2 years ago
parent 1b58f64ce0
commit c72ce75137
  1. 6
      src/main/java/com/huoran/iasf/service/impl/UserServiceImpl.java

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

Loading…
Cancel
Save