fix:重置密码问题
This commit is contained in:
@@ -62,10 +62,10 @@ public class SecurityUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统用户Id
|
||||
*
|
||||
* @return 系统用户Id
|
||||
* 获取系统用户部门Id
|
||||
* @return 用户部门现在1:n,该方法禁用
|
||||
*/
|
||||
@Deprecated
|
||||
public static Long getDeptId() {
|
||||
// return getCurrentUser().getUser().getDept().getId();
|
||||
return 1L;
|
||||
|
||||
@@ -135,6 +135,9 @@ public class ISysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> imp
|
||||
}catch (Exception ex){
|
||||
throw new RuntimeException();
|
||||
}
|
||||
if ("123456".equals(sysUser.getPassword())){
|
||||
sysUser.setPassword(SaSecureUtil.md5BySalt("123456", "salt"));
|
||||
}
|
||||
sysUser.setUpdateTime(new Date());
|
||||
sysUser.setUpdateId(SecurityUtils.getCurrentUserId());
|
||||
this.updateById(sysUser);
|
||||
|
||||
Reference in New Issue
Block a user