mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -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)
|
||||
{
|
||||
session_unset();
|
||||
session_start();
|
||||
|
||||
$this->settings = $settings;
|
||||
|
@ -48,6 +47,7 @@ class TextCaptcha implements CaptchaInterface
|
|||
*/
|
||||
public function get(): string
|
||||
{
|
||||
$_SESSION['phrase'] = $this->captcha->getPhrase();
|
||||
$this->captcha->build();
|
||||
return "
|
||||
<img src=" . $this->captcha->inline() . " /><br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue