Skip to content

Commit

Permalink
Allow captcha demo of flood limit
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 22, 2023
1 parent 305187e commit 8ba74e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/Sandbox/src/Controller/CaptchasController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function index() {
*/
public function math() {
if ($this->request->getQuery('reset')) {
$this->Captcha->resetFor(env('REMOTE_ADDR'));
$this->Captcha->resetFor((string)env('REMOTE_ADDR'));

$this->Flash->success('Resetted, now you can try again.');

Expand Down

0 comments on commit 8ba74e0

Please sign in to comment.