fix: don't send email and password when updating a customer

This commit is contained in:
Noah Lancien 2025-07-10 08:17:43 +02:00
parent a5bbbfdcef
commit bbfba0bda1
2 changed files with 9 additions and 4 deletions

View file

@ -58,9 +58,14 @@ class CustomerController extends Controller
$customer->updateApiData(\array_merge(Arr::only(
$request->validated(),
[
'firstname', 'lastname', 'birth_date', 'address',
'country', 'city', 'phone',
'email', 'password', 'opt_in',
'firstname',
'lastname',
'birth_date',
'address',
'country',
'city',
'phone',
'opt_in',
]
), ['postcode' => $request->input('postal_code')]));
Session::flash('success', trans('Vos informations ont bien été mis à jour'));

View file

@ -1,6 +1,6 @@
{
"name": "uwil/gen-game-web",
"version": "2.4.7",
"version": "2.4.8",
"type": "project",
"description": "Game generator",
"support": {