🆙 Final fix delete storage link to fix news_images and logs 🆙

This commit is contained in:
Remco
2026-01-07 20:29:24 +01:00
parent 65ea6c167f
commit acf2d7e661
447 changed files with 208 additions and 66965 deletions
@@ -1,38 +0,0 @@
<?php
namespace App\Rules;
use Closure;
use GuzzleHttp\Client;
use Illuminate\Contracts\Validation\InvokableRule;
class GoogleRecaptchaRule implements InvokableRule
{
public function __invoke(string $attribute, mixed $value, Closure $fail)
{
// If recaptcha is disabled
if ((int) setting('google_recaptcha_enabled') === 0) {
return true;
}
$client = new Client;
$response = $client->request(
'POST', 'https://www.google.com/recaptcha/api/siteverify', [
'form_params' => [
'secret' => config('habbo.site.recaptcha_secret_key'),
'response' => $value,
'remoteip' => request()->ip(),
],
],
);
if ($response->getStatusCode() !== 200) {
$fail(__('The Google recaptcha was not successful.'));
}
$body = json_decode((string) $response->getBody());
return $body->success;
}
}