Package com.bytedesk.core.kaptcha
Class KaptchaRestController
java.lang.Object
com.bytedesk.core.kaptcha.KaptchaRestController
@RestController
@RequestMapping("/kaptcha/api/v1")
public class KaptchaRestController
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.code.kaptcha.Producerprivate final KaptchaRedisService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>checkKaptcha(UserRequest userRequest) org.springframework.http.ResponseEntity<?>
-
Field Details
-
kaptchaProducer
private final com.google.code.kaptcha.Producer kaptchaProducer -
kaptchaRedisService
-
-
Constructor Details
-
KaptchaRestController
public KaptchaRestController()
-
-
Method Details
-
getKaptcha
@ApiRateLimiter(value=1.0, timeout=1) @GetMapping("/get") public org.springframework.http.ResponseEntity<?> getKaptcha() -
checkKaptcha
@ApiRateLimiter(value=1.0, timeout=1) @PostMapping("/check") public org.springframework.http.ResponseEntity<?> checkKaptcha(@RequestBody UserRequest userRequest)
-