去除修改密码和删除用户功能

This commit is contained in:
steven 2023-08-14 17:40:43 +08:00
parent c81fa97f37
commit 40435da01d
2 changed files with 5 additions and 5 deletions

View File

@ -49,8 +49,8 @@ public class UserController {
*/
@PostMapping("/update")
public void update(@RequestBody CubicUserDto userDto) {
userService.update(userDto);
//测试环境屏蔽密码修改
// userService.update(userDto);
}
/**
@ -71,8 +71,8 @@ public class UserController {
*/
@PostMapping("/delete")
public void delete(@RequestBody CubicUserDto userDto) {
userService.delete(userDto);
//测试环境屏蔽删除用户
//userService.delete(userDto);
}
/**

View File

@ -30,7 +30,7 @@ public class SystemServiceImpl implements SystemService {
public String login(AuthDetail loginDetail) {
CubicUser user = cubicUserMapper.selectOne(new QueryWrapper<CubicUser>().eq("username", loginDetail.getUsername()).eq("status", StatusEnum.YES.getCode()));
if (user == null || !user.getSecret().equals(loginDetail.getPassword()) || !"123456".equals(loginDetail.getPassword())) {
if (user == null || !user.getSecret().equals(loginDetail.getPassword())) {
throw new CubicServiceException("登录失败,账号密码不匹配");
}
StpUtil.login(user.getId());