Captcha now is uppercase because it was too hard to type

This commit is contained in:
veselcraft 2021-01-30 19:22:44 +03:00
parent 444fe447c3
commit 94bed7b5d0

View file

@ -25,7 +25,7 @@ class CaptchaManager
private function generateCode(): string private function generateCode(): string
{ {
return str_replace("/", "+", base64_encode(openssl_random_pseudo_bytes(6))); return mb_strtoupper(str_replace("/", "+", base64_encode(openssl_random_pseudo_bytes(6))));
} }
private function applyNoiseOnImage(Image $image, \Closure $fun): void private function applyNoiseOnImage(Image $image, \Closure $fun): void