mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 06:35:45 -07:00
Update TextCaptcha.php
This commit is contained in:
parent
a67d0b8956
commit
95cef6a8e6
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,6 @@ class TextCaptcha implements CaptchaInterface
|
||||||
*/
|
*/
|
||||||
public function __construct(array $settings)
|
public function __construct(array $settings)
|
||||||
{
|
{
|
||||||
session_unset();
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
|
@ -48,6 +47,7 @@ class TextCaptcha implements CaptchaInterface
|
||||||
*/
|
*/
|
||||||
public function get(): string
|
public function get(): string
|
||||||
{
|
{
|
||||||
|
$_SESSION['phrase'] = $this->captcha->getPhrase();
|
||||||
$this->captcha->build();
|
$this->captcha->build();
|
||||||
return "
|
return "
|
||||||
<img src=" . $this->captcha->inline() . " /><br />
|
<img src=" . $this->captcha->inline() . " /><br />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue