Commit a54e743a884eb328eadbcb9b6bfd1573bc554691
1 parent
64516b22
feat:【SYSTEM 系统管理】手机验证码登录,增加限流
Showing
1 changed file
with
2 additions
and
0 deletions
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java
| ... | ... | @@ -127,6 +127,8 @@ public class AuthController { |
| 127 | 127 | @PostMapping("/sms-login") |
| 128 | 128 | @PermitAll |
| 129 | 129 | @Operation(summary = "使用短信验证码登录") |
| 130 | + // 可按需开启限流:https://github.com/YunaiV/ruoyi-vue-pro/issues/851 | |
| 131 | + // @RateLimiter(time = 60, count = 6, keyResolver = ExpressionRateLimiterKeyResolver.class, keyArg = "#reqVO.mobile") | |
| 130 | 132 | public CommonResult<AuthLoginRespVO> smsLogin(@RequestBody @Valid AuthSmsLoginReqVO reqVO) { |
| 131 | 133 | return success(authService.smsLogin(reqVO)); |
| 132 | 134 | } | ... | ... |