Fix FLEXIAPI-252 Update the hCaptcha Laravel library, use file instead of...

This commit is contained in:
Timothée Jaussoin 2024-12-18 15:14:45 +00:00
parent d43cb345d2
commit 21bced8764
7 changed files with 367 additions and 295 deletions

View file

@ -15,6 +15,7 @@ v1.6
- Fix FLEXIAPI-240 Update the Docker images
- Fix GH-15 Add password import from CSV
- Fix FLEXIAPI-242 Add stricter validation for the AccountCreationToken Push Notification endpoint
- Fix FLEXIAPI-252 Update the hCaptcha Laravel library, use file instead of cookies to store the session to prevent empty errors bags
v1.5
---

View file

@ -89,7 +89,7 @@ REDIS_DB=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=cookie
SESSION_DRIVER=file
SESSION_LIFETIME=120
# SMTP and emails

View file

@ -24,7 +24,7 @@
"react/socket": "^1.14",
"respect/validation": "^2.2",
"sabre/vobject": "^4.5",
"scyllaly/hcaptcha": "^4.4"
"rvxlab/hcaptcha": "^4.4"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.9",

654
flexiapi/composer.lock generated

File diff suppressed because it is too large Load diff

Binary file not shown.

View file

@ -236,7 +236,6 @@ return [
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Scyllaly\HCaptcha\HCaptchaServiceProvider::class,
/*
* Package Service Providers...

View file

@ -1,7 +1,7 @@
@if (captchaConfigured())
<div class="large">
<script src="https://hcaptcha.com/1/api.js?recaptchacompat=off" async="" defer=""></script>
{!! HCaptcha::display() !!}
<x-hcaptcha::widget />
@include('parts.errors', ['name' => 'h-captcha-response'])
</div>
@endif