mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-11-04 08:06:12 +08:00 
			
		
		
		
	feat:【SYSTEM 系统管理】手机验证码登录,增加限流
This commit is contained in:
		@ -127,6 +127,8 @@ public class AuthController {
 | 
				
			|||||||
    @PostMapping("/sms-login")
 | 
					    @PostMapping("/sms-login")
 | 
				
			||||||
    @PermitAll
 | 
					    @PermitAll
 | 
				
			||||||
    @Operation(summary = "使用短信验证码登录")
 | 
					    @Operation(summary = "使用短信验证码登录")
 | 
				
			||||||
 | 
					    // 可按需开启限流:https://github.com/YunaiV/ruoyi-vue-pro/issues/851
 | 
				
			||||||
 | 
					    // @RateLimiter(time = 60, count = 6, keyResolver = ExpressionRateLimiterKeyResolver.class, keyArg = "#reqVO.mobile")
 | 
				
			||||||
    public CommonResult<AuthLoginRespVO> smsLogin(@RequestBody @Valid AuthSmsLoginReqVO reqVO) {
 | 
					    public CommonResult<AuthLoginRespVO> smsLogin(@RequestBody @Valid AuthSmsLoginReqVO reqVO) {
 | 
				
			||||||
        return success(authService.smsLogin(reqVO));
 | 
					        return success(authService.smsLogin(reqVO));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user