优化管理端登录和xss

This commit is contained in:
paulGao
2022-01-17 17:42:42 +08:00
parent b93d10eeea
commit def6247e9f
2 changed files with 7 additions and 47 deletions

View File

@@ -62,7 +62,7 @@ public class AdminUserManagerController {
@Autowired
private VerificationService verificationService;
@GetMapping(value = "/login")
@PostMapping(value = "/login")
@ApiOperation(value = "登录管理员")
public ResultMessage<Token> login(@NotNull(message = "用户名不能为空") @RequestParam String username,
@NotNull(message = "密码不能为空") @RequestParam String password,