|
@@ -179,12 +179,12 @@ discard block |
|
|
block discarded – undo |
|
179
|
179
|
public function factoryProvider(): array |
|
180
|
180
|
{ |
|
181
|
181
|
return [ |
|
182
|
|
- [Controls\Security\Captcha\Factory::TYPE_DISABLED, Controls\Security\Captcha\Disabled::class], |
|
183
|
|
- [Controls\Security\Captcha\Factory::TYPE_TEXT, Controls\Security\Captcha\Text::class], |
|
184
|
|
- [Controls\Security\Captcha\Factory::TYPE_MATH, Controls\Security\Captcha\Numerical::class], |
|
185
|
|
- [Controls\Security\Captcha\Factory::TYPE_COLOUR, Controls\Security\Captcha\ColourfulText::class], |
|
|
182
|
+ [Controls\Security\Captcha\Factory::TYPE_DISABLED, Controls\Security\Captcha\Disabled::class], |
|
|
183
|
+ [Controls\Security\Captcha\Factory::TYPE_TEXT, Controls\Security\Captcha\Text::class], |
|
|
184
|
+ [Controls\Security\Captcha\Factory::TYPE_MATH, Controls\Security\Captcha\Numerical::class], |
|
|
185
|
+ [Controls\Security\Captcha\Factory::TYPE_COLOUR, Controls\Security\Captcha\ColourfulText::class], |
|
186
|
186
|
[Controls\Security\Captcha\Factory::TYPE_NOCAPTCHA, Controls\Security\Captcha\Nocaptcha::class], |
|
187
|
|
- [123, Controls\Security\Captcha\Text::class], |
|
|
187
|
+ [123, Controls\Security\Captcha\Text::class], |
|
188
|
188
|
]; |
|
189
|
189
|
} |
|
190
|
190
|
} |
|
@@ -197,7 +197,7 @@ discard block |
|
|
block discarded – undo |
|
197
|
197
|
|
|
198
|
198
|
class Graphical extends Controls\Security\Captcha\AGraphical |
|
199
|
199
|
{ |
|
200
|
|
- public function set(string $alias, ArrayAccess &$session, string $errorMessage, string $font = ''): self |
|
|
200
|
+ public function set(string $alias, ArrayAccess & $session, string $errorMessage, string $font = ''): self |
|
201
|
201
|
{ |
|
202
|
202
|
$this->font = $font; |
|
203
|
203
|
$text = strtolower($this->generateRandomString(8)); |