You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/Bouncer.md
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ The main Class of this package. This is the first entry point of any PHP Bouncer
12
12
|------|-------------|
13
13
|[__construct](#bouncer__construct)||
14
14
|[buildCaptchaCouple](#bouncerbuildcaptchacouple)|Build a captcha couple.|
15
-
|[checkCaptcha](#bouncercheckcaptcha)||
15
+
|[checkCaptcha](#bouncercheckcaptcha)|Check if the captcha filled by the user is correct or not.|
16
16
|[clearCache](#bouncerclearcache)|This method clear the full data in cache.|
17
17
|[configure](#bouncerconfigure)|Configure this instance.|
18
18
|[getAccessForbiddenHtmlTemplate](#bouncergetaccessforbiddenhtmltemplate)|Returns a default "CrowdSec 403" HTML template to display to a web browser using a banned IP.|
@@ -82,20 +82,27 @@ Build a captcha couple.
82
82
**Description**
83
83
84
84
```php
85
-
checkCaptcha (void)
85
+
public checkCaptcha (string $expected, string $expected, string $ip)
86
86
```
87
87
88
-
88
+
Check if the captcha filled by the user is correct or not.
89
89
90
-
90
+
We are premissive with the user (0 is interpreted as "o" and 1 in interpretted as "l").
0 commit comments