用户管理gitlinkpassword取消加密

This commit is contained in:
chenzhihang 2024-09-03 15:52:03 +08:00
parent 5b581dab77
commit 0bb008ae9f
1 changed files with 4 additions and 4 deletions

View File

@ -186,7 +186,7 @@ public class SysUserController extends BaseController {
}
user.setCreateBy(SecurityUtils.getUsername());
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
user.setGitLinkPassword(SecurityUtils.encryptPassword(user.getGitLinkPassword()));
// user.setGitLinkPassword(SecurityUtils.encryptPassword(user.getGitLinkPassword()));
return toAjax(userService.insertUser(user));
}
@ -212,9 +212,9 @@ public class SysUserController extends BaseController {
if(StringUtils.isNotEmpty(user.getPassword())){
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
}
if(StringUtils.isNotEmpty(user.getGitLinkPassword())){
user.setGitLinkPassword(SecurityUtils.encryptPassword(user.getGitLinkPassword()));
}
// if(StringUtils.isNotEmpty(user.getGitLinkPassword())){
// user.setGitLinkPassword(SecurityUtils.encryptPassword(user.getGitLinkPassword()));
// }
return toAjax(userService.updateUser(user));
}