去掉注册

This commit is contained in:
wuchunlei
2025-12-15 13:37:39 +08:00
parent fb8b8df014
commit 22a7df5b0e

View File

@@ -42,19 +42,6 @@ public class AuthController {
} }
} }
//注册
@RequestMapping("/register")
public R register(@RequestBody User user){
long count = userService.count(new LambdaQueryWrapper<User>().eq(User::getAccount, user.getAccount()));
if(count>0){
return R.error(500,"账号已注册");
}
String saltMD5 = MD5Utils.getSaltMD5(user.getPassword());
user.setPassword(saltMD5);
userService.save(user);
return R.ok();
}
//退出 //退出
@RequestMapping("/logout") @RequestMapping("/logout")
public R logout(){ public R logout(){