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
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class CaptchaManager
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