mirror of
https://gitee.com/dromara/cubic.git
synced 2024-12-01 19:57:45 +08:00
去除修改密码和删除用户功能
This commit is contained in:
parent
c81fa97f37
commit
40435da01d
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user