Skip to content

Commit

Permalink
Updated demo
Browse files Browse the repository at this point in the history
  • Loading branch information
batumibiz committed Jan 12, 2025
1 parent 04e945f commit 2426b65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions docs/demo/image/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
////////////////////////////////////////////////////////////
// Form with a verification code //
////////////////////////////////////////////////////////////
$code = (string) new Mobicms\Captcha\Code();
$image = new Mobicms\Captcha\Image($code);
$_SESSION['code'] = $code;
$image = new Mobicms\Captcha\Image();
$_SESSION['code'] = $image->getCode();

include __DIR__ . '/page_form.phtml';
}
2 changes: 1 addition & 1 deletion docs/demo/image/page_form.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<hr>
<form method="post">
Verification code<br>
<img alt="Verification code" src="<?= $image->generate() ?>" style="border: darkgray 1px solid">
<img alt="Verification code" src="<?= $image->getImage() ?>" style="border: darkgray 1px solid">
<br><br>
<label>Please enter verification code <small>(case-insensitive)</small><br>
<input type="text" size="6" name="code">
Expand Down

0 comments on commit 2426b65

Please sign in to comment.