完善重置密码的功能,增加页面

This commit is contained in:
jishenghua
2026-02-05 21:18:40 +08:00
parent e4c6207fa7
commit 928178bc1f
4 changed files with 120 additions and 5 deletions

View File

@@ -233,8 +233,7 @@ public class UserController extends BaseController {
HttpServletRequest request) throws Exception {
Map<String, Object> objectMap = new HashMap<>();
Long id = jsonObject.getLong("id");
String password = "123456";
String md5Pwd = Tools.md5Encryp(password);
String md5Pwd = jsonObject.getString("password");
int update = userService.resetPwd(md5Pwd, id, request);
if(update > 0) {
return returnJson(objectMap, SUCCESS, ErpInfo.OK.code);